From 880529dbe2410dc97e5df46f570d76eb96b392ca Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 5 Oct 2017 14:59:09 +0300 Subject: [PATCH] Fix compiler crash when can't find referring declarations --- .../main/java/org/teavm/model/util/MissingItemsProcessor.java | 1 + 1 file changed, 1 insertion(+) 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) {