[llvm] 73381a8 - [CodeGen] Fix -Wunused-variable in PrologEpilogInserter.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 08:11:18 PDT 2024
Author: Jie Fu
Date: 2024-03-18T23:09:54+08:00
New Revision: 73381a8df80674bd5198a89e8e879c64c48121b8
URL: https://github.com/llvm/llvm-project/commit/73381a8df80674bd5198a89e8e879c64c48121b8
DIFF: https://github.com/llvm/llvm-project/commit/73381a8df80674bd5198a89e8e879c64c48121b8.diff
LOG: [CodeGen] Fix -Wunused-variable in PrologEpilogInserter.cpp (NFC)
llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp:369:12:
error: unused variable 'MaxCFSIn' [-Werror,-Wunused-variable]
uint32_t MaxCFSIn =
^
1 error generated.
Added:
Modified:
llvm/lib/CodeGen/PrologEpilogInserter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index e77d5e658962b1..eaf96ec5cbde8c 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -366,7 +366,7 @@ void PEI::calculateCallFrameInfo(MachineFunction &MF) {
return;
// (Re-)Compute the MaxCallFrameSize.
- uint32_t MaxCFSIn =
+ [[maybe_unused]] uint32_t MaxCFSIn =
MFI.isMaxCallFrameSizeComputed() ? MFI.getMaxCallFrameSize() : UINT32_MAX;
std::vector<MachineBasicBlock::iterator> FrameSDOps;
MFI.computeMaxCallFrameSize(MF, &FrameSDOps);
More information about the llvm-commits
mailing list