[llvm] 0611a66 - [ARM] Fix a warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 09:20:09 PST 2024


Author: Kazu Hirata
Date: 2024-11-19T09:20:03-08:00
New Revision: 0611a668d1389c8573e83eeafa6d5f6172c4cbc2

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

LOG: [ARM] Fix a warning

This patch fixes:

  llvm/lib/Target/ARM/ARMFrameLowering.cpp:1404:39: error: unused
  variable 'PushPopSplit' [-Werror,-Wunused-variable]

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index d6b94fecf67aef..f495aa701e8754 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -1509,6 +1509,7 @@ void ARMFrameLowering::emitEpilogue(MachineFunction &MF,
     // Increment past our save areas.
     if (AFI->getGPRCalleeSavedArea3Size()) {
       assert(PushPopSplit == ARMSubtarget::SplitR11WindowsSEH);
+      (void)PushPopSplit;
       MBBI++;
     }
 
@@ -1528,6 +1529,7 @@ void ARMFrameLowering::emitEpilogue(MachineFunction &MF,
 
     if (AFI->getGPRCalleeSavedArea2Size()) {
       assert(PushPopSplit != ARMSubtarget::SplitR11WindowsSEH);
+      (void)PushPopSplit;
       MBBI++;
     }
     if (AFI->getGPRCalleeSavedArea1Size()) MBBI++;


        


More information about the llvm-commits mailing list