passing std lib tests

master
Andrew Kelley 2019-11-08 01:15:19 -05:00
parent aef04aff0c
commit 3834d3dac0
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 1 additions and 1 deletions

View File

@ -15719,7 +15719,7 @@ static IrInstruction *ir_resolve_result_raw(IrAnalyze *ira, IrInstruction *suspe
return result_loc->resolved_loc;
}
case ResultLocIdCast: {
if (!non_null_comptime && value != nullptr && value->value.special != ConstValSpecialRuntime)
if (value != nullptr && value->value.special != ConstValSpecialRuntime)
return nullptr;
ResultLocCast *result_cast = reinterpret_cast<ResultLocCast *>(result_loc);
ZigType *dest_type = ir_resolve_type(ira, result_cast->base.source_instruction->child);