[llvm-branch-commits] [llvm] e9c6f3f - [AArch64] Fix -Wunused-variable in AArch64FrameLowering.cpp (NFC)

Jie Fu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 4 11:02:30 PST 2023


Author: Jie Fu
Date: 2023-12-02T18:32:20+08:00
New Revision: e9c6f3f5e7e23b23de4eeaa182ebfcb7d2188495

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

LOG: [AArch64] Fix -Wunused-variable in AArch64FrameLowering.cpp (NFC)

llvm-project/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp:497:21:
error: unused variable 'MFI' [-Werror,-Wunused-variable]
  MachineFrameInfo &MFI = MF.getFrameInfo();
                    ^
1 error generated.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
index e4451a9a85f5..7a2572da8ea0 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -494,7 +494,7 @@ MachineBasicBlock::iterator AArch64FrameLowering::eliminateCallFramePseudoInstr(
       static_cast<const AArch64InstrInfo *>(MF.getSubtarget().getInstrInfo());
   const AArch64TargetLowering *TLI =
       MF.getSubtarget<AArch64Subtarget>().getTargetLowering();
-  MachineFrameInfo &MFI = MF.getFrameInfo();
+  [[maybe_unused]] MachineFrameInfo &MFI = MF.getFrameInfo();
   DebugLoc DL = I->getDebugLoc();
   unsigned Opc = I->getOpcode();
   bool IsDestroy = Opc == TII->getCallFrameDestroyOpcode();


        


More information about the llvm-branch-commits mailing list