Add typeid to Type_Info struct

This commit is contained in:
gingerBill
2018-05-13 10:09:21 +01:00
parent 3b48fa8e7d
commit 61906613b0
3 changed files with 20 additions and 26 deletions
+2 -2
View File
@@ -1551,9 +1551,9 @@ void init_preload(Checker *c) {
t_type_info_enum_value = type_info_enum_value->type;
t_type_info_enum_value_ptr = alloc_type_pointer(t_type_info_enum_value);
GB_ASSERT(tis->fields.count == 3);
GB_ASSERT(tis->fields.count == 4);
Entity *type_info_variant = tis->fields[2];
Entity *type_info_variant = tis->fields[3];
Type *tiv_type = type_info_variant->type;
GB_ASSERT(is_type_union(tiv_type));