[llvm] r305051 - Fix -Wunused-variable.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 8 20:26:45 PDT 2017


Author: ruiu
Date: Thu Jun  8 22:26:45 2017
New Revision: 305051

URL: http://llvm.org/viewvc/llvm-project?rev=305051&view=rev
Log:
Fix -Wunused-variable.

Modified:
    llvm/trunk/lib/Target/AVR/AVRRegisterInfo.cpp

Modified: llvm/trunk/lib/Target/AVR/AVRRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/AVRRegisterInfo.cpp?rev=305051&r1=305050&r2=305051&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/AVRRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/AVR/AVRRegisterInfo.cpp Thu Jun  8 22:26:45 2017
@@ -51,7 +51,6 @@ AVRRegisterInfo::getCallPreservedMask(co
 
 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
 }
 
 } // end of namespace llvm
-




More information about the llvm-commits mailing list