Skip to content

Commit

Permalink
ir: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jul 13, 2018
1 parent 5354d1f commit 860d3da
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 860d3da

Please sign in to comment.