diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-23 11:04:22 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-23 11:04:22 +0100 |
| commit | c2fa79012ea01ad508083f13f86d2b6c8f5045da (patch) | |
| tree | 9f641abba170fe6f78e183842834913ddcdea993 /src/checker.c | |
| parent | 3fd37c6dc5da53fd02214214aa4993f02e6bdc83 (diff) | |
Fix `find_using_index_expr`
Diffstat (limited to 'src/checker.c')
| -rw-r--r-- | src/checker.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/checker.c b/src/checker.c index 6ef7811f3..7ce2dc772 100644 --- a/src/checker.c +++ b/src/checker.c @@ -1984,6 +1984,8 @@ void check_parsed_files(Checker *c) { } } + + // NOTE(bill): Check for illegal cyclic type declarations for_array(i, c->info.definitions.entries) { Entity *e = c->info.definitions.entries.e[i].value; @@ -1991,10 +1993,15 @@ void check_parsed_files(Checker *c) { if (e->type != NULL) { // i64 size = type_size_of(c->sizes, c->allocator, e->type); i64 align = type_align_of(c->allocator, e->type); + if (align > 0) { + // add_type_info_type(c, e->type); + } } } } + // gb_printf_err("Count: %td\n", c->info.type_info_count++); + for_array(i, file_scopes.entries) { Scope *s = file_scopes.entries.e[i].value; if (s->is_init) { |