mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 04:22:57 +02:00
Fix the compile failures from last night.
llvm-svn: 21565
This commit is contained in:
parent
90bcae7fd2
commit
f6199ef63a
@ -2281,6 +2281,8 @@ Instruction *InstCombiner::FoldGEPSetCC(User *GEPLHS, Value *RHS,
|
||||
// compare the base pointer.
|
||||
if (PtrBase != GEPRHS->getOperand(0)) {
|
||||
bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands();
|
||||
IndicesTheSame &= GEPLHS->getOperand(0)->getType() ==
|
||||
GEPRHS->getOperand(0)->getType();
|
||||
if (IndicesTheSame)
|
||||
for (unsigned i = 1, e = GEPLHS->getNumOperands(); i != e; ++i)
|
||||
if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) {
|
||||
|
Loading…
Reference in New Issue
Block a user