aboutsummaryrefslogtreecommitdiff
path: root/src/checker/checker.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-11-22 00:13:52 +0000
committerGinger Bill <bill@gingerbill.org>2016-11-22 00:13:52 +0000
commit36ad9dae43cd21d8532994cd0d0e92a89af0ed04 (patch)
tree2ab180093e4d5ac1e6ed39ed3b8ce5437255ffb5 /src/checker/checker.cpp
parent24347ced45aabd3ce4f4a261b8140a976cadff2e (diff)
128 bit integers
Kind of works but may be buggy due to LLVM not actually sure
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;