diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-09-02 22:11:14 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-09-02 22:11:14 +0000 |
commit | 406452dce3af47bc2ee55d9ff72338dcb78f6c3d (patch) | |
tree | b79850ab3509ef3bb4279e5b37ba0a6a0e7d800e /lib/Transforms/Utils | |
parent | 9cc54f586786572f6c2b1b353b7cf3f98503c59e (diff) | |
download | external_llvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.zip external_llvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.tar.gz external_llvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.tar.bz2 |
Silence warning while compiling with gcc 4.2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41676 91177308-0d34-0410-b5e6-96231b3b80d8
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); |