forked from OSchip/llvm-project
SimplifyIndVar: Remove unused variable
OtherOperandIdx is not used anymore, remove it to silence warnings. llvm-svn: 226138
This commit is contained in:
parent
8054342f9e
commit
f0982d0ac6
|
@ -288,14 +288,11 @@ bool SimplifyIndvar::strengthenOverflowingOperation(BinaryOperator *BO,
|
||||||
|
|
||||||
IntegerType *IT = cast<IntegerType>(IVOperand->getType());
|
IntegerType *IT = cast<IntegerType>(IVOperand->getType());
|
||||||
Value *OtherOperand = nullptr;
|
Value *OtherOperand = nullptr;
|
||||||
int OtherOperandIdx = -1;
|
|
||||||
if (BO->getOperand(0) == IVOperand) {
|
if (BO->getOperand(0) == IVOperand) {
|
||||||
OtherOperand = BO->getOperand(1);
|
OtherOperand = BO->getOperand(1);
|
||||||
OtherOperandIdx = 1;
|
|
||||||
} else {
|
} else {
|
||||||
assert(BO->getOperand(1) == IVOperand && "only other use!");
|
assert(BO->getOperand(1) == IVOperand && "only other use!");
|
||||||
OtherOperand = BO->getOperand(0);
|
OtherOperand = BO->getOperand(0);
|
||||||
OtherOperandIdx = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
|
|
Loading…
Reference in New Issue