[llvm-commits] [llvm] r71255 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Dan Gohman
gohman at apple.com
Fri May 8 13:36:47 PDT 2009
Author: djg
Date: Fri May 8 15:36:47 2009
New Revision: 71255
URL: http://llvm.org/viewvc/llvm-project?rev=71255&view=rev
Log:
Fix an error from r71252.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=71255&r1=71254&r2=71255&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Fri May 8 15:36:47 2009
@@ -1869,11 +1869,11 @@
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.
More information about the llvm-commits
mailing list