aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-17 22:30:49 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-17 22:30:49 -0400
commit914ad1ec2eff4ea9061804ad0da9cde7dd6543b6 (patch)
tree387ccac6981a2c0ab0ce4698ed3363cc4f49c082 /src/ir.cpp
parentc6e77f248d3771070162d80341f9aeef89a49924 (diff)
downloadzig-914ad1ec2eff4ea9061804ad0da9cde7dd6543b6.tar.gz
zig-914ad1ec2eff4ea9061804ad0da9cde7dd6543b6.zip
fix peer result location with typed parent, ...
...runtime condition, comptime prongs. closes #3244
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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) {