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 36f969c commit 8529836Copy full SHA for 8529836
llvm/lib/Transforms/Utils/SSAUpdater.cpp
@@ -173,8 +173,7 @@ Value *SSAUpdater::GetValueInMiddleOfBlock(BasicBlock *BB) {
173
174
// Set the DebugLoc of the inserted PHI, if available.
175
DebugLoc DL;
176
- BasicBlock::iterator It = BB->getFirstNonPHIIt();
177
- if (It != BB->end())
+ if (BasicBlock::iterator It = BB->getFirstNonPHIIt(); It != BB->end())
178
DL = It->getDebugLoc();
179
InsertedPHI->setDebugLoc(DL);
180
0 commit comments