aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-18 18:30:47 +0000
committerChris Lattner <sabre@nondot.org>2005-11-18 18:30:47 +0000
commit1730078d5f553d7516a06e098e6c2089dc8bef9c (patch)
tree7a7caad4d3764fcf75e05a831dcddb2b81f05808 /lib/Transforms
parentf27b6145af0c8d537f04c9340380f242640c638c (diff)
downloadexternal_llvm-1730078d5f553d7516a06e098e6c2089dc8bef9c.tar.gz
external_llvm-1730078d5f553d7516a06e098e6c2089dc8bef9c.tar.bz2
external_llvm-1730078d5f553d7516a06e098e6c2089dc8bef9c.zip
Fix a crash building 176.gcc due to my recent patch, which only fixed
half the problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index bf735aff9e..72ddb07d1e 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/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*/;