Skip to content

Commit 2a95d47

Browse files
committed
[DebugInfo] Follow up to 34cdc91 to fix a crash
We're removing trailing debug-records at the correct time, but from the wrong block. Broken the iterators buildbot: https://lab.llvm.org/buildbot/#/builders/275/builds/1889
1 parent 5ad3a32 commit 2a95d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/BasicBlock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ void BasicBlock::spliceDebugInfoImpl(BasicBlock::iterator Dest, BasicBlock *Src,
10001000
OntoDest->absorbDebugValues(*FromLast, true);
10011001
if (LastIsEnd) {
10021002
FromLast->eraseFromParent();
1003-
deleteTrailingDPValues();
1003+
Src->deleteTrailingDPValues();
10041004
}
10051005
}
10061006

0 commit comments

Comments
 (0)