Skip to content

Commit edecd14

Browse files
committed
undo uneeded change
1 parent a7bbba3 commit edecd14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/IR/BasicBlock.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,9 +756,8 @@ void BasicBlock::spliceDebugInfoEmptyBlock(BasicBlock::iterator Dest,
756756
if (!SrcTrailingDPValues)
757757
return;
758758

759-
createMarker(Dest)->absorbDebugValues(*SrcTrailingDPValues, InsertAtHead);
760-
SrcTrailingDPValues->eraseFromParent();
761-
Src->deleteTrailingDPValues();
759+
Dest->adoptDbgValues(Src, Src->end(), InsertAtHead);
760+
// adoptDbgValues should have released the trailing DPValues.
762761
assert(!Src->getTrailingDPValues());
763762
return;
764763
}

0 commit comments

Comments
 (0)