mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[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:
parent
903a7e487b
commit
9cfc7ff168
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user