authorgravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2018-05-01 17:10:50+03:00
committergravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2018-05-01 17:10:50+03:00
log849ea61fa11460b1a6df2529063a6b0cabc6e5e4
tree5ddd82a016bc06baf332c640b533ebae46ac31b1
parent57940837e7a178577c22b89c5173082e4fb8e618

Small fix.


1 files changed, 2 insertions(+), 0 deletions(-)

src/ir.cpp+2
...@@ -15765,6 +15765,7 @@ static TypeTableEntry *ir_type_info_get_type(IrAnalyze *ira, const char *type_na...@@ -15765,6 +15765,7 @@ static TypeTableEntry *ir_type_info_get_type(IrAnalyze *ira, const char *type_na
15765 type_info_var = get_builtin_value(ira->codegen, "TypeInfo");15765 type_info_var = get_builtin_value(ira->codegen, "TypeInfo");
15766 assert(type_info_var->type->id == TypeTableEntryIdMetaType);15766 assert(type_info_var->type->id == TypeTableEntryIdMetaType);
1576715767
15768 ensure_complete_type(ira->codegen, type_info_var->data.x_type);
15768 type_info_type = type_info_var->data.x_type;15769 type_info_type = type_info_var->data.x_type;
15769 assert(type_info_type->id == TypeTableEntryIdUnion);15770 assert(type_info_type->id == TypeTableEntryIdUnion);
15770 }15771 }
...@@ -15790,6 +15791,7 @@ static TypeTableEntry *ir_type_info_get_type(IrAnalyze *ira, const char *type_na...@@ -15790,6 +15791,7 @@ static TypeTableEntry *ir_type_info_get_type(IrAnalyze *ira, const char *type_na
1579015791
15791 VariableTableEntry *var = tld->var;15792 VariableTableEntry *var = tld->var;
1579215793
15794 ensure_complete_type(ira->codegen, var->value->type);
15793 assert(var->value->type->id == TypeTableEntryIdMetaType);15795 assert(var->value->type->id == TypeTableEntryIdMetaType);
15794 return var->value->data.x_type;15796 return var->value->data.x_type;
15795}15797}