diff options
| author | gingerBill <bill@gingerbill.org> | 2023-06-07 00:10:39 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-06-07 00:10:39 +0100 |
| commit | 2bc5e0ebd71f1337cf5c3820cb4b623a29e90fbe (patch) | |
| tree | dd396912c18c8ef663ef041ea905a6647a5a2874 /src/llvm_backend_stmt.cpp | |
| parent | ca6cef9a7ddb1e3714cc9f5a43053bc7a240b115 (diff) | |
Fix non-constant compound literals of slices
Diffstat (limited to 'src/llvm_backend_stmt.cpp')
| -rw-r--r-- | src/llvm_backend_stmt.cpp | 1 |
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]) { |