mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -08:00
Fix minor issue
This commit is contained in:
parent
8fe3876641
commit
04342d15e7
|
@ -23,6 +23,7 @@ import org.teavm.javascript.spi.Generator;
|
||||||
import org.teavm.javascript.spi.InjectedBy;
|
import org.teavm.javascript.spi.InjectedBy;
|
||||||
import org.teavm.model.*;
|
import org.teavm.model.*;
|
||||||
import org.teavm.model.instructions.InvokeInstruction;
|
import org.teavm.model.instructions.InvokeInstruction;
|
||||||
|
import org.teavm.model.instructions.MonitorEnterInstruction;
|
||||||
import org.teavm.model.util.AsyncProgramSplitter;
|
import org.teavm.model.util.AsyncProgramSplitter;
|
||||||
import org.teavm.model.util.ProgramUtils;
|
import org.teavm.model.util.ProgramUtils;
|
||||||
|
|
||||||
|
@ -310,7 +311,7 @@ public class Decompiler {
|
||||||
generator.setCurrentLocation(nodeLocation);
|
generator.setCurrentLocation(nodeLocation);
|
||||||
}
|
}
|
||||||
insn.acceptVisitor(generator);
|
insn.acceptVisitor(generator);
|
||||||
if (insn instanceof InvokeInstruction && !saved) {
|
if (!saved && (insn instanceof InvokeInstruction || insn instanceof MonitorEnterInstruction)) {
|
||||||
generator.statements.add(new SaveStatement());
|
generator.statements.add(new SaveStatement());
|
||||||
saved = true;
|
saved = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user