diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index bf735aff9ea..72ddb07d1eb 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -161,7 +161,7 @@ void IndVarSimplify::EliminatePointerRecurrence(PHINode *PN,            assert(NumOps > 1 && "CE folding didn't work!");            if (CE->getOperand(NumOps-1)->isNullValue()) {              // Check to make sure the last index really is an array index. -            gep_type_iterator GTI = gep_type_begin(GEPI); +            gep_type_iterator GTI = gep_type_begin(CE);              for (unsigned i = 1, e = CE->getNumOperands()-1;                   i != e; ++i, ++GTI)                /*empty*/; | 

