diff options
| author | kristopher tate <kris.tate+github@gmail.com> | 2018-07-17 23:27:18 +0900 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-07-17 10:27:18 -0400 |
| commit | 69e3b4e7dca816bbdd75207b8f44a5d7e0556a37 (patch) | |
| tree | f5f72d9f85cff29cb2643c6c81ec7c2ceab4ab95 /src/ir.cpp | |
| parent | 3bb00eac37c6b7be789f7b2f516fc1e44e892c8d (diff) | |
| download | zig-69e3b4e7dca816bbdd75207b8f44a5d7e0556a37.tar.gz zig-69e3b4e7dca816bbdd75207b8f44a5d7e0556a37.zip | |
revert commit 860d3da9156a0b1f4a1e3e644b423da3e768bb86 ; please see #1249 for more information; (#1255)
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 35b6b4cef4..a12bd054a7 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -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) { |
