Skip to content

Commit f640dd1

Browse files
committed
[NFC][LLVM] Fix build warning in CloneFunction.cpp
1 parent dc365b2 commit f640dd1

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)