Skip to content

Commit

Permalink
[CodeGen] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build…
Browse files Browse the repository at this point in the history
…s after D154281
  • Loading branch information
MaskRay committed Jul 12, 2023
1 parent 715731b commit 86a542b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/PrologEpilogInserter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 86a542b

Please sign in to comment.