aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2023-06-08 12:34:40 +0100
committerGitHub <noreply@github.com>2023-06-08 12:34:40 +0100
commit4c17e2e97ee401aab8f0a0a77806ebb1eebb935e (patch)
treea3d0a645a44e51d433d14d6cf9b6bdbdf59bdf69 /src
parenteac53fed59bec2ec8bd0a8efff39bd2a195d9d45 (diff)
parent4d5a442d1f7d896e6628b68c0f03b07fa5239475 (diff)
Merge pull request #2552 from jcmoyer/fix-2466
Use compound literal storage for ValueDecl lvals
Diffstat (limited to 'src')
-rw-r--r--src/llvm_backend_stmt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend_stmt.cpp b/src/llvm_backend_stmt.cpp
index 275d1f728..0702af42e 100644
--- a/src/llvm_backend_stmt.cpp
+++ b/src/llvm_backend_stmt.cpp
@@ -2463,6 +2463,7 @@ gb_internal void lb_build_stmt(lbProcedure *p, Ast *node) {
lb_add_entity(p->module, e, val);
lb_add_debug_local_variable(p, val.value, e->type, e->token);
lvals_preused[lval_index] = true;
+ lvals[lval_index] = *comp_lit_addr;
}
}
}