Skip to content

Commit

Permalink
undo uneeded change
Browse files Browse the repository at this point in the history
  • Loading branch information
OCHyams committed Mar 10, 2024
1 parent a7bbba3 commit edecd14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/IR/BasicBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,8 @@ void BasicBlock::spliceDebugInfoEmptyBlock(BasicBlock::iterator Dest,
if (!SrcTrailingDPValues)
return;

createMarker(Dest)->absorbDebugValues(*SrcTrailingDPValues, InsertAtHead);
SrcTrailingDPValues->eraseFromParent();
Src->deleteTrailingDPValues();
Dest->adoptDbgValues(Src, Src->end(), InsertAtHead);
// adoptDbgValues should have released the trailing DPValues.
assert(!Src->getTrailingDPValues());
return;
}
Expand Down

0 comments on commit edecd14

Please sign in to comment.