summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-08 20:36:47 +0000
committerDan Gohman <gohman@apple.com>2009-05-08 20:36:47 +0000
commit2173bd3f34421bd11559c1173cf754318de0ab2d (patch)
treea55e811c3dc4d6947ff10905201ed6e6a16adabd /llvm/lib/Analysis
parenteefdf8970eea4de843f093e353a44cd4d956d66c (diff)
downloadbcm5719-llvm-2173bd3f34421bd11559c1173cf754318de0ab2d.tar.gz
bcm5719-llvm-2173bd3f34421bd11559c1173cf754318de0ab2d.zip
Fix an error from r71252.
llvm-svn: 71255
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 81bf7e8dd9e..c43aad39875 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -1869,11 +1869,11 @@ SCEVHandle ScalarEvolution::createNodeForPHI(PHINode *PN) {
SCEVHandle ScalarEvolution::createNodeForGEP(GetElementPtrInst *GEP) {
const Type *IntPtrTy = TD->getIntPtrType();
- Value *Base = U->getOperand(0);
+ Value *Base = GEP->getOperand(0);
SCEVHandle TotalOffset = getIntegerSCEV(0, IntPtrTy);
- gep_type_iterator GTI = gep_type_begin(U);
- for (GetElementPtrInst::op_iterator I = next(U->op_begin()),
- E = U->op_end();
+ gep_type_iterator GTI = gep_type_begin(GEP);
+ for (GetElementPtrInst::op_iterator I = next(GEP->op_begin()),
+ E = GEP->op_end();
I != E; ++I) {
Value *Index = *I;
// Compute the (potentially symbolic) offset in bytes for this index.
OpenPOWER on IntegriCloud