aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_general.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-05-16 16:18:21 +0100
committergingerBill <bill@gingerbill.org>2024-05-16 16:18:21 +0100
commit32245e93a106c5cb1ee9b448789f623a4dbef717 (patch)
tree2504e2ff16b5b42b61aedb2844a3dd9dea4eea0e /src/llvm_backend_general.cpp
parent330d6117e356fe961fa7688c918e58c7a6917e9e (diff)
Fix #3514 along with `soa.a[i]` bounds checking
Diffstat (limited to 'src/llvm_backend_general.cpp')
-rw-r--r--src/llvm_backend_general.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp
index 3c1a7ee7f..e8183027f 100644
--- a/src/llvm_backend_general.cpp
+++ b/src/llvm_backend_general.cpp
@@ -1324,7 +1324,7 @@ gb_internal lbValue lb_addr_load(lbProcedure *p, lbAddr const &addr) {
for (isize i = 0; i < field_count; i++) {
Entity *field = t->Struct.fields[i];
Type *base_type = field->type;
- GB_ASSERT(base_type->kind == Type_Pointer);
+ GB_ASSERT(base_type->kind == Type_MultiPointer);
lbValue dst = lb_emit_struct_ep(p, res.addr, cast(i32)i);
lbValue src_ptr = lb_emit_struct_ep(p, addr.addr, cast(i32)i);