aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
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
commita55c9f25aece1546aafb5092b520974397cd25f4 (patch)
treeb79850ab3509ef3bb4279e5b37ba0a6a0e7d800e /lib/Transforms/Utils
parent5ef8670c228668fe8ff65702b15e8323cb44c7b8 (diff)
downloadexternal_llvm-a55c9f25aece1546aafb5092b520974397cd25f4.zip
external_llvm-a55c9f25aece1546aafb5092b520974397cd25f4.tar.gz
external_llvm-a55c9f25aece1546aafb5092b520974397cd25f4.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.cpp3
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);