[llvm] 17c3f10 - [SystemZ] Fix an unused variable warning
    Kazu Hirata via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Mar 28 14:19:46 PDT 2024
    
    
  
Author: Kazu Hirata
Date: 2024-03-28T14:19:39-07:00
New Revision: 17c3f102be328b8a2d065cdbc230ccacfa9046a9
URL: https://github.com/llvm/llvm-project/commit/17c3f102be328b8a2d065cdbc230ccacfa9046a9
DIFF: https://github.com/llvm/llvm-project/commit/17c3f102be328b8a2d065cdbc230ccacfa9046a9.diff
LOG: [SystemZ] Fix an unused variable warning
This patch fixes:
  llvm/lib/Target/SystemZ/SystemZISelLowering.cpp:8181:9: error:
  unused variable 'TFL' [-Werror,-Wunused-variable]
Added: 
    
Modified: 
    llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index ce4f5ebcd7c0d3..efffd669d268b5 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -8181,6 +8181,7 @@ SystemZTargetLowering::emitAdjCallStack(MachineInstr &MI,
   auto *TFL = Subtarget.getFrameLowering<SystemZFrameLowering>();
   assert(TFL->hasReservedCallFrame(MF) &&
          "ADJSTACKDOWN and ADJSTACKUP should be no-ops");
+  (void)TFL;
   // Get the MaxCallFrameSize value and erase MI since it serves no further
   // purpose as the call frame is statically reserved in the prolog. Set
   // AdjustsStack as MI is *not* mapped as a frame instruction.
        
    
    
More information about the llvm-commits
mailing list