[llvm-commits] [llvm] r117022 - /llvm/trunk/lib/CodeGen/RenderMachineFunction.cpp

Duncan Sands baldrick at free.fr
Thu Oct 21 09:04:43 PDT 2010


Author: baldrick
Date: Thu Oct 21 11:04:43 2010
New Revision: 117022

URL: http://llvm.org/viewvc/llvm-project?rev=117022&view=rev
Log:
The variable liTRC is not used for anything useful, zap it
(gcc-4.6 warning).

Modified:
    llvm/trunk/lib/CodeGen/RenderMachineFunction.cpp

Modified: llvm/trunk/lib/CodeGen/RenderMachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RenderMachineFunction.cpp?rev=117022&r1=117021&r2=117022&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RenderMachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/RenderMachineFunction.cpp Thu Oct 21 11:04:43 2010
@@ -463,14 +463,9 @@
          liItr != liEnd; ++liItr) {
       LiveInterval *li = liItr->second;
 
-      const TargetRegisterClass *liTRC;
-
       if (TargetRegisterInfo::isPhysicalRegister(li->reg))
         continue;
       
-      liTRC = mri->getRegClass(li->reg);
-     
-
       // For all ranges in the current interal.
       for (LiveInterval::iterator lrItr = li->begin(),
              lrEnd = li->end();





More information about the llvm-commits mailing list