authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-13 13:37:01-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-13 13:37:01-04:00
log860d3da9156a0b1f4a1e3e644b423da3e768bb86
treedc1866b07bf03ccd6a00351e3b37bad0c5e2aafc
parent5354d1f5fc496beb8313488ea1690e02e9c630fa

ir: remove dead code


1 files changed, 0 insertions(+), 2 deletions(-)

src/ir.cpp-2
...@@ -246,8 +246,6 @@ static void ir_ref_bb(IrBasicBlock *bb) {...@@ -246,8 +246,6 @@ static void ir_ref_bb(IrBasicBlock *bb) {
246static void ir_ref_instruction(IrInstruction *instruction, IrBasicBlock *cur_bb) {246static void ir_ref_instruction(IrInstruction *instruction, IrBasicBlock *cur_bb) {
247 assert(instruction->id != IrInstructionIdInvalid);247 assert(instruction->id != IrInstructionIdInvalid);
248 instruction->ref_count += 1;248 instruction->ref_count += 1;
249 if (instruction->owner_bb != cur_bb && !instr_is_comptime(instruction))
250 ir_ref_bb(instruction->owner_bb);
251}249}
252250
253static void ir_ref_var(VariableTableEntry *var) {251static void ir_ref_var(VariableTableEntry *var) {