mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
ir: remove dead code
This commit is contained in:
parent
5354d1f5fc
commit
860d3da915
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user