aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-06-07 00:10:39 +0100
committergingerBill <bill@gingerbill.org>2023-06-07 00:10:39 +0100
commit2bc5e0ebd71f1337cf5c3820cb4b623a29e90fbe (patch)
treedd396912c18c8ef663ef041ea905a6647a5a2874 /src/llvm_backend_stmt.cpp
parentca6cef9a7ddb1e3714cc9f5a43053bc7a240b115 (diff)
Fix non-constant compound literals of slices
Diffstat (limited to 'src/llvm_backend_stmt.cpp')
-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 35fd2b7de..275d1f728 100644
--- a/src/llvm_backend_stmt.cpp
+++ b/src/llvm_backend_stmt.cpp
@@ -2471,6 +2471,7 @@ gb_internal void lb_build_stmt(lbProcedure *p, Ast *node) {
}
GB_ASSERT(lval_index == lvals.count);
+
for_array(i, vd->names) {
Ast *name = vd->names[i];
if (!is_blank_ident(name) && !lvals_preused[i]) {