diff options
| author | gingerBill <bill@gingerbill.org> | 2018-01-28 15:37:15 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-01-28 15:37:15 +0000 |
| commit | b66e7bed45702ad54d160c9f59fd19c503357630 (patch) | |
| tree | e6c6b622586c8336bc6f7100d5c94f4bbfb09f33 /src/ir.cpp | |
| parent | e919482aa80ebf4a6a4fe3e1e5a005a7a7c7927c (diff) | |
Improve min-dep for Type Info
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 68608513f..068ed50f4 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -7838,9 +7838,8 @@ void ir_setup_type_info_data(irProcedure *proc) { // NOTE(bill): Setup type_info i32 type_info_member_names_index = 0; i32 type_info_member_offsets_index = 0; - for_array(type_info_map_index, info->type_info_map.entries) { - auto *entry = &info->type_info_map.entries[type_info_map_index]; - Type *t = cast(Type *)entry->key.ptr; + for_array(type_info_type_index, info->type_info_types) { + Type *t = info->type_info_types[type_info_type_index]; t = default_type(t); if (t == t_invalid) { continue; |