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
+5 -1
View File
@@ -3404,7 +3404,11 @@ gb_internal lbAddr lb_build_addr_from_entity(lbProcedure *p, Entity *e, Ast *exp
lbValue v = {};
lbValue *found = map_get(&p->module->values, e);
lbValue *found = nullptr;
found = map_get(&p->local_entity_map, e);
if (found == nullptr) {
found = map_get(&p->module->values, e);
}
if (found) {
v = *found;
} else if (e->kind == Entity_Variable && e->flags & EntityFlag_Using) {