Use the correct register category for the uninitialized "this" reference

This commit is contained in:
Ben Gruver 2013-04-07 23:40:25 -07:00
parent 13993573b2
commit 02f1d6cc1a

View File

@ -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,