aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-08 01:15:19 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-08 15:57:25 -0500
commit3834d3dac0d901e8319aa515b64ade8604fe1ecf (patch)
tree22691949ed9b2a66369e9516de00ea83016e2440
parentaef04aff0c60a82ab5c2336ca999a918b1905c68 (diff)
downloadzig-3834d3dac0d901e8319aa515b64ade8604fe1ecf.tar.gz
zig-3834d3dac0d901e8319aa515b64ade8604fe1ecf.zip
passing std lib tests
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 148be3b507..bf558cb8a2 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -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);