diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-08 00:23:14 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-08 00:23:14 +0100 |
| commit | c6d02e4778486c350a732105b6413ba1d32a234a (patch) | |
| tree | 5b1dd564dd1e9c96dcf237cc06b3a09fba8854b2 /src/checker/checker.cpp | |
| parent | 3d02f8a5fdcd18f08083994a51ac9518fc565f79 (diff) | |
Fix missing `type_info` with manual linear search
Diffstat (limited to 'src/checker/checker.cpp')
| -rw-r--r-- | src/checker/checker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/checker/checker.cpp b/src/checker/checker.cpp index 65b2e4a6f..9fd61eec8 100644 --- a/src/checker/checker.cpp +++ b/src/checker/checker.cpp @@ -866,7 +866,7 @@ void check_parsed_files(Checker *c) { t_type_info_ptr = make_type_pointer(c->allocator, t_type_info); auto *record = &get_base_type(e->type)->Record; - GB_ASSERT(record->field_count == 15); + GB_ASSERT_MSG(record->field_count == 15, "Internal Compiler Error: Invalid `Type_Info` layout"); t_type_info_named = record->fields[ 1]->type; t_type_info_integer = record->fields[ 2]->type; t_type_info_float = record->fields[ 3]->type; @@ -881,6 +881,7 @@ void check_parsed_files(Checker *c) { t_type_info_union = record->fields[12]->type; t_type_info_raw_union = record->fields[13]->type; t_type_info_enum = record->fields[14]->type; + // t_type_info_any = record->fields[15]->type; } check_global_entity(c, Entity_Constant); |