[llvm] 86a542b - [CodeGen] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D154281
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 12 14:37:44 PDT 2023
Author: Fangrui Song
Date: 2023-07-12T14:37:40-07:00
New Revision: 86a542b00510d5b1a25d4e900556a0dab2dd34ba
URL: https://github.com/llvm/llvm-project/commit/86a542b00510d5b1a25d4e900556a0dab2dd34ba
DIFF: https://github.com/llvm/llvm-project/commit/86a542b00510d5b1a25d4e900556a0dab2dd34ba.diff
LOG: [CodeGen] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D154281
Added:
Modified:
llvm/lib/CodeGen/PrologEpilogInserter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index 85bed5ce329653..6eb1bfd9628515 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -1348,7 +1348,7 @@ void PEI::replaceFrameIndices(MachineFunction &MF) {
// longer track the SP adjustment (but that's OK because in that case, frame
// index elimination does not care about the SP adjustment).
if (!TFI.canSimplifyCallFramePseudos(MF)) {
- for (auto *Succ : MBB.successors())
+ for ([[maybe_unused]] auto *Succ : MBB.successors())
assert(Succ->getSPAdjustment() == SPAdj);
}
}
More information about the llvm-commits
mailing list