We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 905a794 commit a7bbba3Copy full SHA for a7bbba3
llvm/lib/IR/Instruction.cpp
@@ -165,10 +165,10 @@ void Instruction::insertBefore(BasicBlock &BB,
165
}
166
167
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()))
+ // If we're inserting a terminator, check if we need to flush out
+ // TrailingDPValues. Inserting instructions at the end of an incomplete
+ // block is handled by the code block above.
+ if (isTerminator())
172
getParent()->flushTerminatorDbgValues();
173
174
0 commit comments