aboutsummaryrefslogtreecommitdiff
path: root/src/checker/checker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/checker.cpp')
-rw-r--r--src/checker/checker.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/checker/checker.cpp b/src/checker/checker.cpp
index 218cfbd4b..f8c35bcc3 100644
--- a/src/checker/checker.cpp
+++ b/src/checker/checker.cpp
@@ -1328,6 +1328,20 @@ void check_parsed_files(Checker *c) {
}
}
+ for (isize i = 0; i < gb_count_of(basic_types)-1; i++) {
+ Type *t = &basic_types[i];
+ if (t->Basic.size > 0) {
+ add_type_info_type(c, t);
+ }
+ }
+
+ for (isize i = 0; i < gb_count_of(basic_type_aliases)-1; i++) {
+ Type *t = &basic_type_aliases[i];
+ if (t->Basic.size > 0) {
+ add_type_info_type(c, t);
+ }
+ }
+
// for_array(i, c->info.type_info_map.entries) {
// auto *e = &c->info.type_info_map.entries[i];
// Type *prev_type = cast(Type *)e->key.ptr;