mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 15:02:01 -04:00
lsp: re-analyze IR2 files when they change (#1841)
* lsp: re-analyze IR2 files when they change * tests: update ref tests
This commit is contained in:
@@ -552,7 +552,7 @@ void ObjectFileDB::ir2_type_analysis_pass(int seg, const Config& config, ObjectF
|
||||
func.ir2.env.set_types(out.block_init_types, out.op_end_types, *func.ir2.atomic_ops,
|
||||
ts);
|
||||
} catch (const std::exception& e) {
|
||||
func.warnings.warning("Type analysis failed: {}", e.what());
|
||||
func.warnings.error("Type analysis failed: {}", e.what());
|
||||
}
|
||||
func.ir2.env.types_succeeded = out.succeeded;
|
||||
} else {
|
||||
@@ -560,7 +560,7 @@ void ObjectFileDB::ir2_type_analysis_pass(int seg, const Config& config, ObjectF
|
||||
if (run_type_analysis_ir2(ts, dts, func)) {
|
||||
func.ir2.env.types_succeeded = true;
|
||||
} else {
|
||||
func.warnings.warning("Type analysis failed");
|
||||
func.warnings.error("Type analysis failed");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user