Skip to content

Commit

Permalink
revert commit 860d3da ; please see #1249 for more information; (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristopher tate authored and andrewrk committed Jul 17, 2018
1 parent 3bb00ea commit 69e3b4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ir.cpp
Expand Up @@ -246,6 +246,8 @@ 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 69e3b4e

Please sign in to comment.