Skip to content

Commit a7bbba3

Browse files
committed
fix leftover dev comment/code
1 parent 905a794 commit a7bbba3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/IR/Instruction.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ void Instruction::insertBefore(BasicBlock &BB,
165165
}
166166
}
167167

168-
// If we're inserting a new terminator or an instruction at end() check
169-
// if we need to flush out TrailingDPValues.
170-
if (isTerminator() ||
171-
(getParent()->getTrailingDPValues() && InsertPos == BB.end()))
168+
// If we're inserting a terminator, check if we need to flush out
169+
// TrailingDPValues. Inserting instructions at the end of an incomplete
170+
// block is handled by the code block above.
171+
if (isTerminator())
172172
getParent()->flushTerminatorDbgValues();
173173
}
174174

0 commit comments

Comments
 (0)