Skip to content

Commit d9a6ed7

Browse files
authored
[NFC][LLVM] Fix build warning in CloneFunction.cpp (#163267)
1 parent e9814fb commit d9a6ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/CloneFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
826826
BasicBlock::iterator I = NewBB->begin();
827827
for (; (PN = dyn_cast<PHINode>(I)); ++I) {
828828
for (const auto &[Pred, Count] : PredCount) {
829-
for (unsigned _ : llvm::seq<unsigned>(Count))
829+
for ([[maybe_unused]] unsigned _ : llvm::seq<unsigned>(Count))
830830
PN->removeIncomingValue(Pred, false);
831831
}
832832
}

0 commit comments

Comments
 (0)