aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-03-24 13:11:41 +0000
committergingerBill <bill@gingerbill.org>2025-03-24 13:11:41 +0000
commit56e0ab7655337b8ce9738d214c21e5f06e91df09 (patch)
tree358f30b442ca2cdb4af8b1a9866220d2fb3fc0f5 /src/llvm_backend_expr.cpp
parentacb578f184c55f0d1b20ef844a506185684efeba (diff)
Fix #4952
Diffstat (limited to 'src/llvm_backend_expr.cpp')
-rw-r--r--src/llvm_backend_expr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp
index ea3db33f4..0c82180ec 100644
--- a/src/llvm_backend_expr.cpp
+++ b/src/llvm_backend_expr.cpp
@@ -3493,7 +3493,8 @@ gb_internal lbValue lb_build_expr_internal(lbProcedure *p, Ast *expr) {
if (tv.value.kind != ExactValue_Invalid) {
// NOTE(bill): Short on constant values
- return lb_const_value(p->module, type, tv.value);
+ bool allow_local = true;
+ return lb_const_value(p->module, type, tv.value, allow_local);
} else if (tv.mode == Addressing_Type) {
// NOTE(bill, 2023-01-16): is this correct? I hope so at least
return lb_typeid(m, tv.type);