Correct a race condition when checking the procedure body

This commit is contained in:
gingerBill
2023-01-02 15:30:04 +00:00
parent f01cff7ff0
commit 529383f5b1
12 changed files with 262 additions and 68 deletions
+6
View File
@@ -2255,6 +2255,12 @@ gb_internal void lb_generate_code(lbGenerator *gen) {
}
}
if (build_context.ignore_llvm_build) {
gb_printf_err("LLVM SUCCESS!\n");
gb_exit(1);
return;
}
if (do_threading && non_empty_module_count > 1) {
for (auto const &entry : gen->modules) {
lbModule *m = entry.value;