We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ac648 commit 013034cCopy full SHA for 013034c
llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -544,7 +544,7 @@ void PruningFunctionCloner::CloneBlock(
544
// Keep a cursor pointing at the last place we cloned debug-info records from.
545
BasicBlock::const_iterator DbgCursor = StartingInst;
546
auto CloneDbgRecordsToHere =
547
- [NewBB, &DbgCursor](Instruction *NewInst, BasicBlock::const_iterator II) {
+ [&DbgCursor](Instruction *NewInst, BasicBlock::const_iterator II) {
548
// Clone debug-info records onto this instruction. Iterate through any
549
// source-instructions we've cloned and then subsequently optimised
550
// away, so that their debug-info doesn't go missing.
0 commit comments