Union type sizing and code generation

This commit is contained in:
Krzosa Karol
2023-03-29 09:52:24 +02:00
parent b572f4ef7c
commit 9b91f77cf0
4 changed files with 98 additions and 57 deletions

View File

@@ -291,7 +291,7 @@ resolve_everything_in_module(Ast_Module *module) {
For_Named(file->decls, decl) {
resolve_name(file, decl->pos, decl->name);
if (decl->kind == AST_STRUCT) {
if (decl->kind == AST_STRUCT || decl->kind == AST_UNION) {
type_complete(decl->type_val);
}
}