[llvm-commits] CVS: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 18 10:30:58 PST 2005
Changes in directory llvm/lib/Transforms/Scalar:
IndVarSimplify.cpp updated: 1.81 -> 1.82
---
Log message:
Fix a crash building 176.gcc due to my recent patch, which only fixed
half the problem.
---
Diffs of the changes: (+1 -1)
IndVarSimplify.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.81 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.82
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.81 Thu Nov 17 13:35:42 2005
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp Fri Nov 18 12:30:47 2005
@@ -161,7 +161,7 @@
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*/;
More information about the llvm-commits
mailing list