Fix #3514 along with soa.a[i] bounds checking

This commit is contained in:
gingerBill
2024-05-16 16:18:21 +01:00
parent 330d6117e3
commit 32245e93a1
4 changed files with 49 additions and 20 deletions

View File

@@ -7806,8 +7806,8 @@ gb_internal bool check_set_index_data(Operand *o, Type *t, bool indirection, i64
if (is_type_pointer(original_type) && indirection) {
Type *ptr = base_type(original_type);
if (ptr->kind == Type_Pointer && o->mode == Addressing_SoaVariable) {
o->type = ptr->Pointer.elem;
if (ptr->kind == Type_MultiPointer && o->mode == Addressing_SoaVariable) {
o->type = ptr->MultiPointer.elem;
o->mode = Addressing_Value;
return true;
}