Skip to content

Commit 8529836

Browse files
jmorseSLTozer
andcommitted
Update llvm/lib/Transforms/Utils/SSAUpdater.cpp
Co-authored-by: Stephen Tozer <[email protected]>
1 parent 36f969c commit 8529836

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Utils/SSAUpdater.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ Value *SSAUpdater::GetValueInMiddleOfBlock(BasicBlock *BB) {
173173

174174
// Set the DebugLoc of the inserted PHI, if available.
175175
DebugLoc DL;
176-
BasicBlock::iterator It = BB->getFirstNonPHIIt();
177-
if (It != BB->end())
176+
if (BasicBlock::iterator It = BB->getFirstNonPHIIt(); It != BB->end())
178177
DL = It->getDebugLoc();
179178
InsertedPHI->setDebugLoc(DL);
180179

0 commit comments

Comments
 (0)