summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-03-28 14:19:39 -0700
committerKazu Hirata <kazu@google.com>2024-03-28 14:19:39 -0700
commit17c3f102be328b8a2d065cdbc230ccacfa9046a9 (patch)
tree688cede900b40a287f71cbe3e049a771ebd08f0a
parent8a614c1d316b3f8ac72580f0ccaf8d2ae8eab752 (diff)
[SystemZ] Fix an unused variable warning
This patch fixes: llvm/lib/Target/SystemZ/SystemZISelLowering.cpp:8181:9: error: unused variable 'TFL' [-Werror,-Wunused-variable]
-rw-r--r--llvm/lib/Target/SystemZ/SystemZISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index ce4f5ebcd7c0..efffd669d268 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.