Fix previous commit for arrays
This commit is contained in:
1 parent
bbf76fa43e
commit
a0b35f67f8
1 file changed
+1
-2
+1
-2
@@ -5397,7 +5397,7 @@ gb_internal Entity *check_selector(CheckerContext *c, Operand *operand, Ast *nod
|
||||
} else {
|
||||
if (is_type_dynamic_array(t)) {
|
||||
init_mem_allocator(c->checker);
|
||||
} else {
|
||||
}
|
||||
sel = lookup_field(operand->type, field_name, operand->mode == Addressing_Type);
|
||||
entity = sel.entity;
|
||||
|
||||
@@ -5410,7 +5410,6 @@ gb_internal Entity *check_selector(CheckerContext *c, Operand *operand, Ast *nod
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (entity == nullptr && selector->kind == Ast_Ident && operand->type != nullptr &&
|
||||
(is_type_array(type_deref(operand->type)) || is_type_simd_vector(type_deref(operand->type)))) {
|
||||
|
||||
Reference in new issue
Block a user