Skip to content

Commit 73381a8

Browse files
committed
[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.
1 parent d56110f commit 73381a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/PrologEpilogInserter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ void PEI::calculateCallFrameInfo(MachineFunction &MF) {
366366
return;
367367

368368
// (Re-)Compute the MaxCallFrameSize.
369-
uint32_t MaxCFSIn =
369+
[[maybe_unused]] uint32_t MaxCFSIn =
370370
MFI.isMaxCallFrameSizeComputed() ? MFI.getMaxCallFrameSize() : UINT32_MAX;
371371
std::vector<MachineBasicBlock::iterator> FrameSDOps;
372372
MFI.computeMaxCallFrameSize(MF, &FrameSDOps);

0 commit comments

Comments
 (0)