diff options
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r-- | lib/Transforms/Utils/DemoteRegToStack.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/DemoteRegToStack.cpp b/lib/Transforms/Utils/DemoteRegToStack.cpp index df332b2..95b28f1 100644 --- a/lib/Transforms/Utils/DemoteRegToStack.cpp +++ b/lib/Transforms/Utils/DemoteRegToStack.cpp @@ -122,7 +122,8 @@ AllocaInst* llvm::DemotePHIToStack(PHINode *P) { // Insert load in place of the phi and replace all uses. BasicBlock::iterator InsertPt; for (InsertPt = P->getParent()->getInstList().begin(); - isa<PHINode>(InsertPt); ++InsertPt); + isa<PHINode>(InsertPt); ++InsertPt) + ; /*noop */ Value *V = new LoadInst(Slot, P->getName()+".reload", P); P->replaceAllUsesWith(V); |