diff --git a/core/src/main/java/org/teavm/model/optimization/DefaultInliningStrategy.java b/core/src/main/java/org/teavm/model/optimization/DefaultInliningStrategy.java index 452e3efae..cf67fdbd1 100644 --- a/core/src/main/java/org/teavm/model/optimization/DefaultInliningStrategy.java +++ b/core/src/main/java/org/teavm/model/optimization/DefaultInliningStrategy.java @@ -43,7 +43,7 @@ public class DefaultInliningStrategy implements InliningStrategy { @Override public InliningStep start(MethodReference method, ProgramReader program) { Complexity complexity = getComplexity(program, null); - if (complexity.score > complexityThreshold) { + if (complexity.score > totalComplexityThreshold) { return null; }