aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-10-13 16:46:31 -0700
committerGitHub <noreply@github.com>2025-10-13 16:46:31 -0700
commitd9a6ed73ebbb6a6b6be11b5153afa443d72fbee3 (patch)
treeb30341cea43dbfbb720794fffc8b6a6f0b7a4187 /llvm/lib
parente9814fbf640d63f8d4db991f4e7c153549def564 (diff)
downloadllvm-d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3.zip
llvm-d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3.tar.gz
llvm-d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3.tar.bz2
[NFC][LLVM] Fix build warning in CloneFunction.cpp (#163267)
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 3ce569f..32924e7 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);
}
}