From 3779520389bdce91c91f66e95db7dbb03c2ec508 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 18 Mar 2021 01:03:01 +0300 Subject: [PATCH] C: fix after introducing CCE support --- .../lowlevel/ExceptionHandlingShadowStackContributor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/model/lowlevel/ExceptionHandlingShadowStackContributor.java b/core/src/main/java/org/teavm/model/lowlevel/ExceptionHandlingShadowStackContributor.java index dcaa96414..127cfc1bc 100644 --- a/core/src/main/java/org/teavm/model/lowlevel/ExceptionHandlingShadowStackContributor.java +++ b/core/src/main/java/org/teavm/model/lowlevel/ExceptionHandlingShadowStackContributor.java @@ -41,6 +41,7 @@ import org.teavm.model.Variable; import org.teavm.model.instructions.BinaryBranchingCondition; import org.teavm.model.instructions.BinaryBranchingInstruction; import org.teavm.model.instructions.BoundCheckInstruction; +import org.teavm.model.instructions.CastInstruction; import org.teavm.model.instructions.CloneArrayInstruction; import org.teavm.model.instructions.ConstructArrayInstruction; import org.teavm.model.instructions.ConstructInstruction; @@ -280,7 +281,8 @@ public class ExceptionHandlingShadowStackContributor { || insn instanceof ConstructArrayInstruction || insn instanceof ConstructMultiArrayInstruction || insn instanceof CloneArrayInstruction || insn instanceof RaiseInstruction || insn instanceof MonitorEnterInstruction || insn instanceof MonitorExitInstruction - || insn instanceof NullCheckInstruction || insn instanceof BoundCheckInstruction) { + || insn instanceof NullCheckInstruction || insn instanceof BoundCheckInstruction + || insn instanceof CastInstruction) { return true; } else if (insn instanceof InvokeInstruction) { return isManagedMethodCall(characteristics, ((InvokeInstruction) insn).getMethod());