diff --git a/core/src/main/java/org/teavm/model/util/MissingItemsProcessor.java b/core/src/main/java/org/teavm/model/util/MissingItemsProcessor.java index bed018031..d2bdce88f 100644 --- a/core/src/main/java/org/teavm/model/util/MissingItemsProcessor.java +++ b/core/src/main/java/org/teavm/model/util/MissingItemsProcessor.java @@ -91,6 +91,7 @@ public class MissingItemsProcessor { instruction.getNext().delete(); } instruction.insertNextAll(instructionsToAdd); + instruction.delete(); } private void emitExceptionThrow(TextLocation location, String exceptionName, String text) {