Skip to content

Commit 905a794

Browse files
committed
fix comment
1 parent 4e0bfff commit 905a794

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/IR/Instruction.cpp

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

168-
// If we're inserting a terminator, check if we need to flush out
169-
// TrailingDPValues.
170-
// if (isTerminator()) // @OCH -- what if we always attach danglers to the
171-
// next inserted inst? This might be needed for the FE. Not very efficient
172-
// though.
168+
// If we're inserting a new terminator or an instruction at end() check
169+
// if we need to flush out TrailingDPValues.
173170
if (isTerminator() ||
174171
(getParent()->getTrailingDPValues() && InsertPos == BB.end()))
175172
getParent()->flushTerminatorDbgValues();

0 commit comments

Comments
 (0)