From c7309c06d03f3eae456d16618a8f1aa09d4f94df Mon Sep 17 00:00:00 2001 From: volth Date: Tue, 6 Aug 2019 21:53:46 +0000 Subject: [PATCH] ClassGenerator.prepare: handle IsInstanceInstruction case --- .../java/org/teavm/backend/c/generate/ClassGenerator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/org/teavm/backend/c/generate/ClassGenerator.java b/core/src/main/java/org/teavm/backend/c/generate/ClassGenerator.java index 0ed683f7f..518b8e5e2 100644 --- a/core/src/main/java/org/teavm/backend/c/generate/ClassGenerator.java +++ b/core/src/main/java/org/teavm/backend/c/generate/ClassGenerator.java @@ -177,6 +177,11 @@ public class ClassGenerator { addType(ValueType.object(insn.getType())); } + @Override + public void visit(IsInstanceInstruction insn) { + addType(insn.getType()); + } + @Override public void visit(ConstructMultiArrayInstruction insn) { ValueType type = insn.getItemType();