]> granicus.if.org Git - llvm/commitdiff
Fix -Wunused-variable.
authorRui Ueyama <ruiu@google.com>
Fri, 9 Jun 2017 03:26:45 +0000 (03:26 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 9 Jun 2017 03:26:45 +0000 (03:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305051 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AVR/AVRRegisterInfo.cpp

index 11a47bad78baa67bbfa47a1416d5975e16aedaa5..55f3f5cf428acdee6ebc4ff819ede03f6b955e21 100644 (file)
@@ -51,7 +51,6 @@ AVRRegisterInfo::getCallPreservedMask(const MachineFunction &MF,
 
 BitVector AVRRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
   BitVector Reserved(getNumRegs());
-  const AVRTargetMachine &TM = static_cast<const AVRTargetMachine&>(MF.getTarget());
 
   // Reserve the intermediate result registers r1 and r2
   // The result of instructions like 'mul' is always stored here.
@@ -269,4 +268,3 @@ void AVRRegisterInfo::splitReg(unsigned Reg,
 }
 
 } // end of namespace llvm
-