authorgravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2018-04-24 15:17:34+03:00
committergravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2018-04-24 15:17:34+03:00
loge9309d3b1310863d9571486b071b7a34bea1fb60
tree5ecf22c7c1ce2a1d74696a4292ef3d3295d24521
parentec2a3ed500d4ba269c87b3ad0efe7bcc89eb2057

Fixed IntInfo generation.


1 files changed, 4 insertions(+), 1 deletions(-)

src/ir.cpp+4-1
...@@ -15772,7 +15772,10 @@ static TypeTableEntry *ir_analyze_instruction_type_info(IrAnalyze *ira,...@@ -15772,7 +15772,10 @@ static TypeTableEntry *ir_analyze_instruction_type_info(IrAnalyze *ira,
15772 out_val->data.x_union.payload = payload;15772 out_val->data.x_union.payload = payload;
1577315773
15774 payload->special = ConstValSpecialStatic;15774 payload->special = ConstValSpecialStatic;
15775 payload->type = get_builtin_value(ira->codegen, "IntInfo")->type;15775
15776 ConstExprValue *int_info_type = get_builtin_value(ira->codegen, "IntInfo");
15777 assert(int_info_type->type->id == TypeTableEntryIdMetaType);
15778 payload->type = int_info_type->data.x_type;
1577615779
15777 ConstExprValue *fields = create_const_vals(2);15780 ConstExprValue *fields = create_const_vals(2);
15778 payload->data.x_struct.fields = fields;15781 payload->data.x_struct.fields = fields;