diff options
| author | Alexandros Naskos <alex_naskos@hotmail.com> | 2018-04-24 15:17:34 +0300 |
|---|---|---|
| committer | Alexandros Naskos <alex_naskos@hotmail.com> | 2018-04-24 15:17:34 +0300 |
| commit | e9309d3b1310863d9571486b071b7a34bea1fb60 (patch) | |
| tree | 5ecf22c7c1ce2a1d74696a4292ef3d3295d24521 /src/ir.cpp | |
| parent | ec2a3ed500d4ba269c87b3ad0efe7bcc89eb2057 (diff) | |
| download | zig-e9309d3b1310863d9571486b071b7a34bea1fb60.tar.gz zig-e9309d3b1310863d9571486b071b7a34bea1fb60.zip | |
Fixed IntInfo generation.
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 2212efb101..39e48ac33b 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -15772,7 +15772,10 @@ static TypeTableEntry *ir_analyze_instruction_type_info(IrAnalyze *ira, out_val->data.x_union.payload = payload; payload->special = ConstValSpecialStatic; - payload->type = get_builtin_value(ira->codegen, "IntInfo")->type; + + ConstExprValue *int_info_type = get_builtin_value(ira->codegen, "IntInfo"); + assert(int_info_type->type->id == TypeTableEntryIdMetaType); + payload->type = int_info_type->data.x_type; ConstExprValue *fields = create_const_vals(2); payload->data.x_struct.fields = fields; |
