Skip to content

Commit

Permalink
Only check for .net when creating the fast hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMil committed Feb 13, 2024
1 parent 9b2ecb2 commit 166b61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/soot/FastHierarchy.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
public class FastHierarchy {

protected static final int USE_INTERVALS_BOUNDARY = 100;
private final boolean isDotNet = Options.v().src_prec() == Options.src_prec_dotnet;

protected Table<SootClass, NumberedString, SootMethod> typeToVtbl = HashBasedTable.create();

Expand Down Expand Up @@ -978,7 +979,6 @@ private SootMethod getSignaturePolymorphicMethod(SootClass concreteType, String
if (concreteType == null) {
throw new RuntimeException("The concreteType cannot not be null!");
}
boolean isDotNet = Options.v().src_prec() == Options.src_prec_dotnet;
SootMethod candidate = null;
for (SootMethod method : concreteType.getMethodsByNameAndParamCount(name, parameterTypes.size())) {
if (method.getParameterTypes().equals(parameterTypes) && canStoreType(method.getReturnType(), returnType)) {
Expand Down

0 comments on commit 166b61e

Please sign in to comment.