aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ir.cpp2
1 files changed, 0 insertions, 2 deletions
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) {