C: fix missing files when casting to arrays

This commit is contained in:
Alexey Andreev 2021-03-24 16:09:01 +03:00
parent 6de830d5bd
commit bb4315e486

View File

@ -63,6 +63,7 @@ import org.teavm.model.classes.TagRegistry;
import org.teavm.model.classes.VirtualTable;
import org.teavm.model.classes.VirtualTableEntry;
import org.teavm.model.instructions.AbstractInstructionVisitor;
import org.teavm.model.instructions.CastInstruction;
import org.teavm.model.instructions.ClassConstantInstruction;
import org.teavm.model.instructions.ConstructArrayInstruction;
import org.teavm.model.instructions.ConstructInstruction;
@ -190,6 +191,11 @@ public class ClassGenerator {
addType(insn.getType());
}
@Override
public void visit(CastInstruction insn) {
addType(insn.getTargetType());
}
@Override
public void visit(ConstructMultiArrayInstruction insn) {
ValueType type = insn.getItemType();