Skip to content

Commit 02b3268

Browse files
Revert strange internal Soot change
1 parent 2035cf6 commit 02b3268

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/main/java/soot/jimple/toolkits/typing/fast/TypeResolver.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,7 @@ public Value visit(Value op, Type useType, Stmt stmt, boolean checkOnly) {
215215
return op;
216216
}
217217

218-
boolean needCast = false;
219-
if (useType instanceof PrimType && t instanceof PrimType) {
220-
if (t.isAllowedInFinalCode() && useType.isAllowedInFinalCode()) {
221-
needCast = true;
222-
}
223-
}
224-
if (!needCast && this.h.ancestor(useType, t)) {
218+
if (this.h.ancestor(useType, t)) {
225219
return op;
226220
}
227221

0 commit comments

Comments
 (0)