mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-26 07:25:00 -07:00
Fix #3514 along with soa.a[i] bounds checking
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user