[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.
This commit is contained in:
annamthomas 2023-09-20 13:58:16 -04:00 committed by GitHub
parent 903a7e487b
commit 9cfc7ff168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -629,6 +629,7 @@ void LiveRange::join(LiveRange &Other,
const int *RHSValNoAssignments,
SmallVectorImpl<VNInfo *> &NewVNInfo) {
verify();
Other.verify();
// Determine if any of our values are mapped. This is uncommon, so we want
// to avoid the range scan if not.