aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-08-19 16:57:36 +0100
committergingerBill <bill@gingerbill.org>2022-08-19 16:57:36 +0100
commitc8c076f970448ff25a3489fdaeb91c742bead8f8 (patch)
treea67ea953de2b27bff27af139861e39a057980d40 /src/llvm_backend_expr.cpp
parentafec321db2ba30581d04e369d1864140ccfd20a6 (diff)
Fix #1963
Diffstat (limited to 'src/llvm_backend_expr.cpp')
-rw-r--r--src/llvm_backend_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp
index 5fd2fbe6f..3b2e6c29f 100644
--- a/src/llvm_backend_expr.cpp
+++ b/src/llvm_backend_expr.cpp
@@ -3577,7 +3577,7 @@ void lb_build_addr_compound_lit_populate(lbProcedure *p, Slice<Ast *> const &ele
}
} else {
- if (lb_is_elem_const(elem, et)) {
+ if (bt->kind != Type_DynamicArray && lb_is_elem_const(elem, et)) {
continue;
}