From f640dd1c4844fc9502294f24b4c2ef3703f5a9af Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Mon, 13 Oct 2025 14:18:29 -0700 Subject: [PATCH] [NFC][LLVM] Fix build warning in CloneFunction.cpp --- llvm/lib/Transforms/Utils/CloneFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(I)); ++I) { for (const auto &[Pred, Count] : PredCount) { - for (unsigned _ : llvm::seq(Count)) + for ([[maybe_unused]] unsigned _ : llvm::seq(Count)) PN->removeIncomingValue(Pred, false); } }