use cached const_void_val

master
Jimmi Holst Christensen 2019-03-08 10:58:29 +01:00 committed by Andrew Kelley
parent 29accac74c
commit 5a52613caf
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 1 additions and 3 deletions

View File

@ -18045,9 +18045,7 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInstruction *source_instr
case ZigTypeIdNull:
case ZigTypeIdArgTuple:
case ZigTypeIdOpaque:
result = create_const_vals(1);
result->special = ConstValSpecialStatic;
result->type = ira->codegen->builtin_types.entry_void;
result = &ira->codegen->const_void_val;
break;
case ZigTypeIdInt:
{