From 9bdd2f602058e090fcb02314928fee083141e64b Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Sat, 25 Oct 2014 13:20:41 +0400 Subject: [PATCH] Fix https://github.com/konsoletyper/teavm/issues/27 --- .../java/org/teavm/model/util/InterferenceGraphBuilder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teavm-core/src/main/java/org/teavm/model/util/InterferenceGraphBuilder.java b/teavm-core/src/main/java/org/teavm/model/util/InterferenceGraphBuilder.java index e39480eaf..1ef421e12 100644 --- a/teavm-core/src/main/java/org/teavm/model/util/InterferenceGraphBuilder.java +++ b/teavm-core/src/main/java/org/teavm/model/util/InterferenceGraphBuilder.java @@ -41,6 +41,9 @@ class InterferenceGraphBuilder { for (BasicBlock succ : succExtractor.getTargets()) { liveOut.or(liveness.liveIn(succ.getIndex())); } + for (TryCatchBlock tryCatch : block.getTryCatchBlocks()) { + liveOut.or(liveness.liveIn(tryCatch.getHandler().getIndex())); + } live.clear(); for (int j = 0; j < liveOut.length(); ++j) { if (liveOut.get(j)) {