Make defer_use_checked and where_clauses_evaluated atomic

This commit is contained in:
gingerBill
2026-02-02 10:54:49 +00:00
parent 74347f3069
commit 8a92ba74fc
3 changed files with 11 additions and 11 deletions

View File

@@ -676,7 +676,7 @@ gb_internal void lb_begin_procedure_body(lbProcedure *p) {
lbAddr res = {};
if (p->entity && p->entity->decl_info &&
p->entity->decl_info->defer_use_checked &&
p->entity->decl_info->defer_use_checked.load(std::memory_order_relaxed) &&
p->entity->decl_info->defer_used == 0) {
// NOTE(bill): this is a bodge to get around the issue of the problem BELOW