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 4e0bfff commit 905a794Copy full SHA for 905a794
llvm/lib/IR/Instruction.cpp
@@ -165,11 +165,8 @@ void Instruction::insertBefore(BasicBlock &BB,
165
}
166
167
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.
+ // If we're inserting a new terminator or an instruction at end() check
+ // if we need to flush out TrailingDPValues.
173
if (isTerminator() ||
174
(getParent()->getTrailingDPValues() && InsertPos == BB.end()))
175
getParent()->flushTerminatorDbgValues();
0 commit comments