From 5a346fd3a4950bedc5215e0dc5a35751c6c9dfc4 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 29 Apr 2019 12:40:34 +0300 Subject: [PATCH] Fix issue in inliner --- .../org/teavm/model/optimization/DefaultInliningStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }