Fix issue in inliner

This commit is contained in:
Alexey Andreev 2019-04-29 12:40:34 +03:00
parent 093b506c9a
commit 5a346fd3a4

View File

@ -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;
}