Skip to content

Commit a961ea8

Browse files
committed
[LiveRange] Verify Other LiveRange in Join API
The LiveRange::join API takes in two live ranges. We should verify the LiveRange argument passed in as well.
1 parent 903a7e4 commit a961ea8

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)