Fix a race condition when produced anonymous procedure literals with -use-separate-modules

This commit is contained in:
gingerBill
2023-06-13 13:14:59 +01:00
parent 296674e18b
commit 581eebb197
5 changed files with 99 additions and 55 deletions
+3
View File
@@ -199,6 +199,9 @@ struct DeclInfo {
BlockingMutex type_and_value_mutex;
Array<BlockLabel> labels;
// NOTE(bill): this is to prevent a race condition since these procedure literals can be created anywhere at any time
struct lbModule *code_gen_module;
};
// ProcInfo stores the information needed for checking a procedure