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:
Tyler Wilding
2022-09-05 17:45:41 -04:00
committed by GitHub
parent 9f90a7c2db
commit 71871595da
12 changed files with 19 additions and 23 deletions
+2 -2
View File
@@ -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 {