diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-09-03 02:02:59 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-09-03 02:02:59 +0000 |
commit | 5a6b6b43459b875e88d598c232ddef7b805fe107 (patch) | |
tree | 15c059841451d835cf462421ef76cd4498c234d5 /lib/Analysis | |
parent | f0cb8b7ce425011e4caedfb841fdfc0aa38e6cff (diff) | |
download | external_llvm-5a6b6b43459b875e88d598c232ddef7b805fe107.zip external_llvm-5a6b6b43459b875e88d598c232ddef7b805fe107.tar.gz external_llvm-5a6b6b43459b875e88d598c232ddef7b805fe107.tar.bz2 |
back out my recent commit (r80858), it seems to break self-hosting buildbot's stage 2 configure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/IPA/Andersens.cpp | 2 | ||||
-rw-r--r-- | lib/Analysis/IPA/GlobalsModRef.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index 6f21a4f..9de1fcc 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -1018,7 +1018,7 @@ bool Andersens::AnalyzeUsesOfFunction(Value *V) { } else if (InvokeInst *II = dyn_cast<InvokeInst>(*UI)) { // Make sure that this is just the function being called, not that it is // passing into the function. - for (unsigned i = 0, e = II->getNumOperands() - 3; i != e; ++i) + for (unsigned i = 3, e = II->getNumOperands(); i != e; ++i) if (II->getOperand(i) == V) return true; } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(*UI)) { if (CE->getOpcode() == Instruction::GetElementPtr || diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp index bfc6e11..2e9884a 100644 --- a/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/lib/Analysis/IPA/GlobalsModRef.cpp @@ -244,7 +244,7 @@ bool GlobalsModRef::AnalyzeUsesOfPointer(Value *V, } else if (InvokeInst *II = dyn_cast<InvokeInst>(*UI)) { // Make sure that this is just the function being called, not that it is // passing into the function. - for (unsigned i = 0, e = II->getNumOperands() - 3; i != e; ++i) + for (unsigned i = 3, e = II->getNumOperands(); i != e; ++i) if (II->getOperand(i) == V) return true; } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(*UI)) { if (CE->getOpcode() == Instruction::GetElementPtr || |