diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-05 12:27:28 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-05 12:28:18 +0100 |
| commit | 7f194080e6fca33a8341f2c86d52a85be056cf8f (patch) | |
| tree | 9aae401ca128713b176d17d09a8a676d7f097819 /src/checker.cpp | |
| parent | c910b5e583b8064f551179bfddc7c59ef5a32675 (diff) | |
Fix possible race condition with struct offsets
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index a1d8f98d7..dbe2af866 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -6802,7 +6802,11 @@ gb_internal void check_parsed_files(Checker *c) { for_array(i, c->info.definitions) { Entity *e = c->info.definitions[i]; if (e->kind == Entity_TypeName && e->type != nullptr && is_type_typed(e->type)) { - (void)type_align_of(e->type); + if (e->TypeName.is_type_alias) { + // Ignore for the time being + } else { + (void)type_align_of(e->type); + } } else if (e->kind == Entity_Procedure) { DeclInfo *decl = e->decl_info; ast_node(pl, ProcLit, decl->proc_lit); |