From a3eb5f635f3d8a1291bbf56692b336e0242852b1 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 29 Sep 2023 20:57:45 +0200 Subject: [PATCH] Fix wrong previous commit --- .../org/teavm/classlib/impl/SwitchBootstrapSubstitutor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classlib/src/main/java/org/teavm/classlib/impl/SwitchBootstrapSubstitutor.java b/classlib/src/main/java/org/teavm/classlib/impl/SwitchBootstrapSubstitutor.java index bfbc4b986..cedd3271b 100644 --- a/classlib/src/main/java/org/teavm/classlib/impl/SwitchBootstrapSubstitutor.java +++ b/classlib/src/main/java/org/teavm/classlib/impl/SwitchBootstrapSubstitutor.java @@ -23,12 +23,14 @@ import org.teavm.model.ValueType; import org.teavm.model.emit.PhiEmitter; import org.teavm.model.emit.ProgramEmitter; import org.teavm.model.emit.ValueEmitter; +import org.teavm.model.instructions.SwitchInstruction; +import org.teavm.model.instructions.SwitchTableEntry; public class SwitchBootstrapSubstitutor implements BootstrapMethodSubstitutor { @Override public ValueEmitter substitute(DynamicCallSite callSite, ProgramEmitter pe) { boolean enumSwitch = callSite.getBootstrapMethod().getName().equals("enumSwitch"); - List labels = callSite.getBootstrapArguments(); + var labels = callSite.getBootstrapArguments(); ValueEmitter target = callSite.getArguments().get(0); ValueEmitter restartIdx = callSite.getArguments().get(1); BasicBlock joint = pe.prepareBlock();