mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 12:37:37 +02:00
Enforce strict reference equality for uninit ref register types
This commit is contained in:
@ -76,6 +76,12 @@ public class RegisterType {
|
||||
if (category != that.category) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// These require strict reference equality. Every instance represents a unique
|
||||
// reference that can't be merged with a different one, even if they have the same type.
|
||||
if (category == UNINIT_REF || category == UNINIT_THIS) {
|
||||
return false;
|
||||
}
|
||||
return (type != null ? type.equals(that.type) : that.type == null);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user