summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/Andersens.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-09-03 02:02:59 +0000
committerGabor Greif <ggreif@gmail.com>2009-09-03 02:02:59 +0000
commit2d60e1ec0ca2977910c4d8bf3652039d20139eaa (patch)
tree4b79a6ad9ce2a3a7a10ed1df79621fa765c68401 /llvm/lib/Analysis/IPA/Andersens.cpp
parent2c5bef2a743c2231ea55c0284145330d960f3cc5 (diff)
downloadbcm5719-llvm-2d60e1ec0ca2977910c4d8bf3652039d20139eaa.tar.gz
bcm5719-llvm-2d60e1ec0ca2977910c4d8bf3652039d20139eaa.zip
back out my recent commit (r80858), it seems to break self-hosting buildbot's stage 2 configure
llvm-svn: 80871
Diffstat (limited to 'llvm/lib/Analysis/IPA/Andersens.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/Andersens.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IPA/Andersens.cpp b/llvm/lib/Analysis/IPA/Andersens.cpp
index 6f21a4f2ed9..9de1fcc5c19 100644
--- a/llvm/lib/Analysis/IPA/Andersens.cpp
+++ b/llvm/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 ||
OpenPOWER on IntegriCloud