From 914ad1ec2eff4ea9061804ad0da9cde7dd6543b6 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 17 Sep 2019 22:30:49 -0400 Subject: fix peer result location with typed parent, ... ...runtime condition, comptime prongs. closes #3244 --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index f29afdcf7b..ea9039a1b6 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -15198,7 +15198,7 @@ static IrInstruction *ir_resolve_result_raw(IrAnalyze *ira, IrInstruction *suspe } peer_parent->skipped = true; return ir_resolve_result(ira, suspend_source_instr, peer_parent->parent, - value_type, value, force_runtime, true, true); + value_type, value, force_runtime || !is_comptime, true, true); } if (peer_parent->resolved_type == nullptr) { -- cgit v1.2.3