Union type sizing and code generation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user