diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-10-13 16:46:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-13 16:46:31 -0700 |
commit | d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3 (patch) | |
tree | b30341cea43dbfbb720794fffc8b6a6f0b7a4187 | |
parent | e9814fbf640d63f8d4db991f4e7c153549def564 (diff) | |
download | llvm-d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3.zip llvm-d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3.tar.gz llvm-d9a6ed73ebbb6a6b6be11b5153afa443d72fbee3.tar.bz2 |
[NFC][LLVM] Fix build warning in CloneFunction.cpp (#163267)
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 2 |
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); } } |