aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_proc.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-02-02 10:54:49 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-02-02 10:56:30 +0000
commit8a92ba74fc90b70f56af5e0dcfd37c16aab94595 (patch)
treed0d6d19389119f0d6cdbd83ee351fd1e0659e9bf /src/llvm_backend_proc.cpp
parent74347f3069972a7580c0bf2d4f3b1b65eb940cc5 (diff)
Make `defer_use_checked` and `where_clauses_evaluated` atomic
Diffstat (limited to 'src/llvm_backend_proc.cpp')
-rw-r--r--src/llvm_backend_proc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp
index 837d7ce48..dc502717e 100644
--- a/src/llvm_backend_proc.cpp
+++ b/src/llvm_backend_proc.cpp
@@ -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