Skip to content

Commit 849ea61

Browse files
committed
Small fix.
1 parent 5794083 commit 849ea61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ir.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15765,6 +15765,7 @@ static TypeTableEntry *ir_type_info_get_type(IrAnalyze *ira, const char *type_na
1576515765
type_info_var = get_builtin_value(ira->codegen, "TypeInfo");
1576615766
assert(type_info_var->type->id == TypeTableEntryIdMetaType);
1576715767

15768+
ensure_complete_type(ira->codegen, type_info_var->data.x_type);
1576815769
type_info_type = type_info_var->data.x_type;
1576915770
assert(type_info_type->id == TypeTableEntryIdUnion);
1577015771
}
@@ -15790,6 +15791,7 @@ static TypeTableEntry *ir_type_info_get_type(IrAnalyze *ira, const char *type_na
1579015791

1579115792
VariableTableEntry *var = tld->var;
1579215793

15794+
ensure_complete_type(ira->codegen, var->value->type);
1579315795
assert(var->value->type->id == TypeTableEntryIdMetaType);
1579415796
return var->value->data.x_type;
1579515797
}

0 commit comments

Comments
 (0)