summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9c37f2364562e3b049a2d10aa6598be5a9d45aeb (patch)
tree2091fca1299349269f2d9ada5e769b63e4c53016 /llvm/lib/Transforms
parent6bc51c6f3462650305b85cd57f081fec12d752e8 (diff)
downloadbcm5719-llvm-9c37f2364562e3b049a2d10aa6598be5a9d45aeb.tar.gz
bcm5719-llvm-9c37f2364562e3b049a2d10aa6598be5a9d45aeb.zip
Fix a crash building 176.gcc due to my recent patch, which only fixed
half the problem. llvm-svn: 24414
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp2
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*/;
OpenPOWER on IntegriCloud