[llvm] f97e15e - [ARM] Fix "local variable is initialized but not referenced" MSVX warning. NFC

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 13 03:48:20 PDT 2022


Author: Simon Pilgrim
Date: 2022-06-13T11:48:06+01:00
New Revision: f97e15ef455f8235521fd1642f29b08ebfb746ff

URL: https://github.com/llvm/llvm-project/commit/f97e15ef455f8235521fd1642f29b08ebfb746ff
DIFF: https://github.com/llvm/llvm-project/commit/f97e15ef455f8235521fd1642f29b08ebfb746ff.diff

LOG: [ARM] Fix "local variable is initialized but not referenced" MSVX warning. NFC

Added: 
    

Modified: 
    llvm/lib/Target/ARM/Thumb1FrameLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp b/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp
index 48688cbd527f..e762a645a892 100644
--- a/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp
+++ b/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp
@@ -468,7 +468,6 @@ void Thumb1FrameLowering::emitEpilogue(MachineFunction &MF,
   int NumBytes = (int)MFI.getStackSize();
   assert((unsigned)NumBytes >= ArgRegsSaveSize &&
          "ArgRegsSaveSize is included in NumBytes");
-  const MCPhysReg *CSRegs = RegInfo->getCalleeSavedRegs(&MF);
   Register FramePtr = RegInfo->getFrameRegister(MF);
 
   if (!AFI->hasStackFrame()) {


        


More information about the llvm-commits mailing list