mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-15 08:19:51 +00:00
Fix the compile failures from last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4706c0395b
commit
93b94a6ccf
@ -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…
x
Reference in New Issue
Block a user