mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix previous commit for arrays
This commit is contained in:
+9
-10
@@ -5397,17 +5397,16 @@ gb_internal Entity *check_selector(CheckerContext *c, Operand *operand, Ast *nod
|
|||||||
} else {
|
} else {
|
||||||
if (is_type_dynamic_array(t)) {
|
if (is_type_dynamic_array(t)) {
|
||||||
init_mem_allocator(c->checker);
|
init_mem_allocator(c->checker);
|
||||||
} else {
|
}
|
||||||
sel = lookup_field(operand->type, field_name, operand->mode == Addressing_Type);
|
sel = lookup_field(operand->type, field_name, operand->mode == Addressing_Type);
|
||||||
entity = sel.entity;
|
entity = sel.entity;
|
||||||
|
|
||||||
// NOTE(bill): Add type info needed for fields like 'names'
|
// NOTE(bill): Add type info needed for fields like 'names'
|
||||||
if (entity != nullptr && (entity->flags&EntityFlag_TypeField)) {
|
if (entity != nullptr && (entity->flags&EntityFlag_TypeField)) {
|
||||||
add_type_info_type(c, operand->type);
|
add_type_info_type(c, operand->type);
|
||||||
}
|
}
|
||||||
if (is_type_enum(operand->type)) {
|
if (is_type_enum(operand->type)) {
|
||||||
add_type_info_type(c, operand->type);
|
add_type_info_type(c, operand->type);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user