From d778952512279795cb10fc92ddaac4e05d31f037 Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Thu, 13 Dec 2012 19:22:30 +0400 Subject: [PATCH] fixed bug with incorrect copy of pseudocode part (was noticeable in doTestCopy4 example) labels after part should be repeated as well --- .../lang/cfg/pseudocode/PseudocodeImpl.java | 24 +++++--- .../testData/cfg/FinallyTestCopy.instructions | 58 ++++++++++++++++++- compiler/testData/cfg/FinallyTestCopy.jet | 10 ++++ 3 files changed, 82 insertions(+), 10 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/cfg/pseudocode/PseudocodeImpl.java b/compiler/frontend/src/org/jetbrains/jet/lang/cfg/pseudocode/PseudocodeImpl.java index ff2f033d666..72a8b008d50 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/cfg/pseudocode/PseudocodeImpl.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/cfg/pseudocode/PseudocodeImpl.java @@ -483,16 +483,12 @@ public class PseudocodeImpl implements Pseudocode { } } for (int index = startIndex; index < finishIndex; index++) { - Instruction oldInstruction = mutableInstructionList.get(index); - Instruction newInstruction = copyInstruction(oldInstruction, originalToCopy); - if (originalLabelsForInstruction.containsKey(oldInstruction)) { - Collection