aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2025-06-12 12:04:41 +0100
committerJeremy Morse <jeremy.morse@sony.com>2025-06-12 12:04:41 +0100
commit013034cd0f5ae19ef02fc35a83362874e727f13c (patch)
tree1f2c53f676a1c3deed146adedaef098645c4bb92 /llvm/lib
parent97ac6483aaead89897d9bda8a12f1f4c11fad621 (diff)
downloadllvm-013034cd0f5ae19ef02fc35a83362874e727f13c.zip
llvm-013034cd0f5ae19ef02fc35a83362874e727f13c.tar.gz
llvm-013034cd0f5ae19ef02fc35a83362874e727f13c.tar.bz2
Follow-up to 97ac6483aae, squelch an unused lambda capture warning
NewBB here was being captured for some code that was deleted in 97ac6483aae, and that leads to some warnings on some compilers.
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 510d9f9..fccb73a 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -544,7 +544,7 @@ void PruningFunctionCloner::CloneBlock(
// Keep a cursor pointing at the last place we cloned debug-info records from.
BasicBlock::const_iterator DbgCursor = StartingInst;
auto CloneDbgRecordsToHere =
- [NewBB, &DbgCursor](Instruction *NewInst, BasicBlock::const_iterator II) {
+ [&DbgCursor](Instruction *NewInst, BasicBlock::const_iterator II) {
// Clone debug-info records onto this instruction. Iterate through any
// source-instructions we've cloned and then subsequently optimised
// away, so that their debug-info doesn't go missing.