Skip to content

Commit 4dcd1db

Browse files
committed
Make sure that the method is not phantomized
1 parent 197d4ff commit 4dcd1db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

soot-infoflow-android/src/soot/jimple/infoflow/android/AndroidLibraryClassPatcher.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ private void patchInstantiate(SootClass sc, String subsig, String... name) {
9393
SootMethod smInstantiate = getOrCreateMethod(sc, subsig);
9494
Jimple j = Jimple.v();
9595
JimpleBody body = j.newBody(smInstantiate);
96+
if (smInstantiate.isPhantom())
97+
smInstantiate.setPhantom(false);
9698
smInstantiate.setActiveBody(body);
9799
body.insertIdentityStmts();
98100
Chain<Local> locals = body.getLocals();

0 commit comments

Comments
 (0)