mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Fix issue in inliner
This commit is contained in:
parent
093b506c9a
commit
5a346fd3a4
|
@ -43,7 +43,7 @@ public class DefaultInliningStrategy implements InliningStrategy {
|
||||||
@Override
|
@Override
|
||||||
public InliningStep start(MethodReference method, ProgramReader program) {
|
public InliningStep start(MethodReference method, ProgramReader program) {
|
||||||
Complexity complexity = getComplexity(program, null);
|
Complexity complexity = getComplexity(program, null);
|
||||||
if (complexity.score > complexityThreshold) {
|
if (complexity.score > totalComplexityThreshold) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user