From c75e58ffe6905c6a7d4e9f082726ea2cdcec514e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 29 Jan 2017 19:10:56 -0500 Subject: fix behavior for comptime and runtime basic block phi --- src/ir.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ir.cpp b/src/ir.cpp index 34654760a4..3793418972 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -5935,6 +5935,7 @@ static TypeTableEntry *ir_inline_bb(IrAnalyze *ira, IrInstruction *source_instru return ir_unreach_error(ira); } + old_bb->other = ira->old_irb.current_basic_block->other; ir_start_bb(ira, old_bb, ira->old_irb.current_basic_block); return ira->codegen->builtin_types.entry_unreachable; } -- cgit v1.2.3