diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-01-15 07:11:23 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-01-15 07:11:23 +0000 |
commit | f0982d0ac6daf6cad5952a968c4ec4a10713a2d2 (patch) | |
tree | 01c4d11840deb533c2c2f447baa54667b829f7f4 | |
parent | 8054342f9ea9ab3d0d325e1f2151fe19b405f445 (diff) | |
download | bcm5719-llvm-f0982d0ac6daf6cad5952a968c4ec4a10713a2d2.tar.gz bcm5719-llvm-f0982d0ac6daf6cad5952a968c4ec4a10713a2d2.zip |
SimplifyIndVar: Remove unused variable
OtherOperandIdx is not used anymore, remove it to silence warnings.
llvm-svn: 226138
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp index 6cb91a154f0..d54c09aa6ae 100644 --- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp @@ -288,14 +288,11 @@ bool SimplifyIndvar::strengthenOverflowingOperation(BinaryOperator *BO, IntegerType *IT = cast<IntegerType>(IVOperand->getType()); Value *OtherOperand = nullptr; - int OtherOperandIdx = -1; if (BO->getOperand(0) == IVOperand) { OtherOperand = BO->getOperand(1); - OtherOperandIdx = 1; } else { assert(BO->getOperand(1) == IVOperand && "only other use!"); OtherOperand = BO->getOperand(0); - OtherOperandIdx = 0; } bool Changed = false; |