Union type sizing and code generation
This commit is contained in:
@@ -980,7 +980,7 @@ parse_file(Ast_File *file) {
|
||||
if (!decl) break;
|
||||
|
||||
set_flag(decl->flags, AST_GLOBAL);
|
||||
if (decl->kind == AST_STRUCT) {
|
||||
if (decl->kind == AST_STRUCT || decl->kind == AST_UNION) {
|
||||
decl->type = pctx->type_type;
|
||||
decl->type_val = type_incomplete(decl);
|
||||
decl->state = DECL_RESOLVED;
|
||||
|
||||
Reference in New Issue
Block a user