From 860d3da9156a0b1f4a1e3e644b423da3e768bb86 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 13 Jul 2018 13:37:01 -0400 Subject: ir: remove dead code --- src/ir.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index f452ef43e0..23ca901c99 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -246,8 +246,6 @@ static void ir_ref_bb(IrBasicBlock *bb) { static void ir_ref_instruction(IrInstruction *instruction, IrBasicBlock *cur_bb) { assert(instruction->id != IrInstructionIdInvalid); instruction->ref_count += 1; - if (instruction->owner_bb != cur_bb && !instr_is_comptime(instruction)) - ir_ref_bb(instruction->owner_bb); } static void ir_ref_var(VariableTableEntry *var) { -- cgit v1.2.3