authorgravatar for kris.tate+github@gmail.comkristopher tate <kris.tate+github@gmail.com> 2018-07-17 23:27:18+09:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-17 10:27:18-04:00
log69e3b4e7dca816bbdd75207b8f44a5d7e0556a37
treef5f72d9f85cff29cb2643c6c81ec7c2ceab4ab95
parent3bb00eac37c6b7be789f7b2f516fc1e44e892c8d

revert commit 860d3da9156a0b1f4a1e3e644b423da3e768bb86 ; please see #1249 for more information; (#1255)


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

src/ir.cpp+2
...@@ -246,6 +246,8 @@ static void ir_ref_bb(IrBasicBlock *bb) {...@@ -246,6 +246,8 @@ 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);
249}251}
250252
251static void ir_ref_var(VariableTableEntry *var) {253static void ir_ref_var(VariableTableEntry *var) {