mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-14 09:38:40 +00:00
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
This commit is contained in:
parent
f27b6145af
commit
1730078d5f
@ -161,7 +161,7 @@ void IndVarSimplify::EliminatePointerRecurrence(PHINode *PN,
|
|||||||
assert(NumOps > 1 && "CE folding didn't work!");
|
assert(NumOps > 1 && "CE folding didn't work!");
|
||||||
if (CE->getOperand(NumOps-1)->isNullValue()) {
|
if (CE->getOperand(NumOps-1)->isNullValue()) {
|
||||||
// Check to make sure the last index really is an array index.
|
// 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;
|
for (unsigned i = 1, e = CE->getNumOperands()-1;
|
||||||
i != e; ++i, ++GTI)
|
i != e; ++i, ++GTI)
|
||||||
/*empty*/;
|
/*empty*/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user