diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-07-13 13:37:01 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-07-13 13:37:01 -0400 |
| commit | 860d3da9156a0b1f4a1e3e644b423da3e768bb86 (patch) | |
| tree | dc1866b07bf03ccd6a00351e3b37bad0c5e2aafc /src/ir.cpp | |
| parent | 5354d1f5fc496beb8313488ea1690e02e9c630fa (diff) | |
| download | zig-860d3da9156a0b1f4a1e3e644b423da3e768bb86.tar.gz zig-860d3da9156a0b1f4a1e3e644b423da3e768bb86.zip | |
ir: remove dead code
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
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) { |
