Skip to content

Commit 9cfc7ff

Browse files
authored
[LiveRange] Verify Other LiveRange in Join API (#66809)
The LiveRange::join API takes in two live ranges. We should verify the LiveRange passed in to the Join API as well.
1 parent 903a7e4 commit 9cfc7ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/CodeGen/LiveInterval.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ void LiveRange::join(LiveRange &Other,
629629
const int *RHSValNoAssignments,
630630
SmallVectorImpl<VNInfo *> &NewVNInfo) {
631631
verify();
632+
Other.verify();
632633

633634
// Determine if any of our values are mapped. This is uncommon, so we want
634635
// to avoid the range scan if not.

0 commit comments

Comments
 (0)