aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-07-13 13:37:01 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-07-13 13:37:01 -0400
commit860d3da9156a0b1f4a1e3e644b423da3e768bb86 (patch)
treedc1866b07bf03ccd6a00351e3b37bad0c5e2aafc /src/ir.cpp
parent5354d1f5fc496beb8313488ea1690e02e9c630fa (diff)
downloadzig-860d3da9156a0b1f4a1e3e644b423da3e768bb86.tar.gz
zig-860d3da9156a0b1f4a1e3e644b423da3e768bb86.zip
ir: remove dead code
Diffstat (limited to 'src/ir.cpp')
-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) {