projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f27b614
)
Fix a crash building 176.gcc due to my recent patch, which only fixed
author
Chris Lattner
<sabre@nondot.org>
Fri, 18 Nov 2005 18:30:47 +0000
(18:30 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 18 Nov 2005 18:30:47 +0000
(18:30 +0000)
half the problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24414
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/IndVarSimplify.cpp
b/lib/Transforms/Scalar/IndVarSimplify.cpp
index bf735aff9eadb0621c688a9003113235f409f77a..72ddb07d1eb2b6c8805c348336cc560a0c902b7c 100644
(file)
--- 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*/;