Skip to content

Commit 013034c

Browse files
committed
Follow-up to 97ac648, squelch an unused lambda capture warning
NewBB here was being captured for some code that was deleted in 97ac648, and that leads to some warnings on some compilers.
1 parent 97ac648 commit 013034c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/CloneFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ void PruningFunctionCloner::CloneBlock(
544544
// Keep a cursor pointing at the last place we cloned debug-info records from.
545545
BasicBlock::const_iterator DbgCursor = StartingInst;
546546
auto CloneDbgRecordsToHere =
547-
[NewBB, &DbgCursor](Instruction *NewInst, BasicBlock::const_iterator II) {
547+
[&DbgCursor](Instruction *NewInst, BasicBlock::const_iterator II) {
548548
// Clone debug-info records onto this instruction. Iterate through any
549549
// source-instructions we've cloned and then subsequently optimised
550550
// away, so that their debug-info doesn't go missing.

0 commit comments

Comments
 (0)