mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 19:52:30 +00:00
Fix #3514 along with soa.a[i] bounds checking
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user