mirror of
https://github.com/revanced/smali.git
synced 2025-05-03 16:14:29 +02:00
Use the correct register category for the uninitialized "this" reference
This commit is contained in:
parent
13993573b2
commit
02f1d6cc1a
@ -149,7 +149,7 @@ public class MethodAnalyzer {
|
|||||||
//if this is a constructor, then set the "this" register to an uninitialized reference of the current class
|
//if this is a constructor, then set the "this" register to an uninitialized reference of the current class
|
||||||
if (MethodUtil.isConstructor(method)) {
|
if (MethodUtil.isConstructor(method)) {
|
||||||
setPostRegisterTypeAndPropagateChanges(startOfMethod, thisRegister,
|
setPostRegisterTypeAndPropagateChanges(startOfMethod, thisRegister,
|
||||||
RegisterType.getRegisterType(RegisterType.UNINIT,
|
RegisterType.getRegisterType(RegisterType.UNINIT_THIS,
|
||||||
classPath.getClass(method.getDefiningClass())));
|
classPath.getClass(method.getDefiningClass())));
|
||||||
} else {
|
} else {
|
||||||
setPostRegisterTypeAndPropagateChanges(startOfMethod, thisRegister,
|
setPostRegisterTypeAndPropagateChanges(startOfMethod, thisRegister,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user