[llvm] d9a6ed7 - [NFC][LLVM] Fix build warning in CloneFunction.cpp (#163267)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 13 16:46:35 PDT 2025
Author: Rahul Joshi
Date: 2025-10-13T16:46:31-07:00
New Revision: d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3
URL: https://github.com/llvm/llvm-project/commit/d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3
DIFF: https://github.com/llvm/llvm-project/commit/d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3.diff
LOG: [NFC][LLVM] Fix build warning in CloneFunction.cpp (#163267)
Added:
Modified:
llvm/lib/Transforms/Utils/CloneFunction.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 3ce569f2d67bc..32924e7b69fdc 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -826,7 +826,7 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
BasicBlock::iterator I = NewBB->begin();
for (; (PN = dyn_cast<PHINode>(I)); ++I) {
for (const auto &[Pred, Count] : PredCount) {
- for (unsigned _ : llvm::seq<unsigned>(Count))
+ for ([[maybe_unused]] unsigned _ : llvm::seq<unsigned>(Count))
PN->removeIncomingValue(Pred, false);
}
}
More information about the llvm-commits
mailing list