mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
Fix a crash building 176.gcc due to my recent patch, which only fixed
half the problem. llvm-svn: 24414
This commit is contained in:
parent
b8ad89c2a4
commit
e67f211b68
@ -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*/;
|
||||
|
Loading…
x
Reference in New Issue
Block a user