Commit 860d3da915

Andrew Kelley <superjoe30@gmail.com>
2018-07-13 19:37:01
ir: remove dead code
1 parent 5354d1f
Changed files (1)
src
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) {