From: Dmitri Gribenko Date: Fri, 25 Jan 2013 23:17:21 +0000 (+0000) Subject: Remove unused variables, silences -Wunused-variable X-Git-Tag: llvmorg-3.3.0-rc1~6989 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c451bdf9ff7b9ef5efbde7301c49921e749a8300;p=platform%2Fupstream%2Fllvm.git Remove unused variables, silences -Wunused-variable llvm-svn: 173526 --- diff --git a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp index 1afef33df038..88b63e65d166 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp @@ -168,8 +168,7 @@ unsigned PPCTTI::getMaximumUnrollFactor() const { } unsigned PPCTTI::getArithmeticInstrCost(unsigned Opcode, Type *Ty) const { - int ISD = TLI->InstructionOpcodeToISD(Opcode); - assert(ISD && "Invalid opcode"); + assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); // Fallback to the default implementation. return TargetTransformInfo::getArithmeticInstrCost(Opcode, Ty); @@ -181,8 +180,7 @@ unsigned PPCTTI::getShuffleCost(ShuffleKind Kind, Type *Tp, int Index, } unsigned PPCTTI::getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src) const { - int ISD = TLI->InstructionOpcodeToISD(Opcode); - assert(ISD && "Invalid opcode"); + assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); return TargetTransformInfo::getCastInstrCost(Opcode, Dst, Src); }