From: David Majnemer Date: Thu, 15 Jan 2015 07:11:23 +0000 (+0000) Subject: SimplifyIndVar: Remove unused variable X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cdfb69b2a3ab81314e943e36745e683caf99e7f4;p=oota-llvm.git SimplifyIndVar: Remove unused variable OtherOperandIdx is not used anymore, remove it to silence warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226138 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/SimplifyIndVar.cpp b/lib/Transforms/Utils/SimplifyIndVar.cpp index 6cb91a154f0..d54c09aa6ae 100644 --- a/lib/Transforms/Utils/SimplifyIndVar.cpp +++ b/lib/Transforms/Utils/SimplifyIndVar.cpp @@ -288,14 +288,11 @@ bool SimplifyIndvar::strengthenOverflowingOperation(BinaryOperator *BO, IntegerType *IT = cast(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;