summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/DemoteRegToStack.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-09-02 22:11:14 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-09-02 22:11:14 +0000
commit406452dce3af47bc2ee55d9ff72338dcb78f6c3d (patch)
treeb79850ab3509ef3bb4279e5b37ba0a6a0e7d800e /lib/Transforms/Utils/DemoteRegToStack.cpp
parent9cc54f586786572f6c2b1b353b7cf3f98503c59e (diff)
downloadllvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.tar.gz
llvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.tar.bz2
llvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.tar.xz
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/DemoteRegToStack.cpp')
-rw-r--r--lib/Transforms/Utils/DemoteRegToStack.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/DemoteRegToStack.cpp b/lib/Transforms/Utils/DemoteRegToStack.cpp
index df332b289d..95b28f1346 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);