CFG: fix label binding for last instruction of finally block

So #KT-18698 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-07-12 13:15:38 +03:00
committed by Mikhail Glukhikh
parent ab0e734e7d
commit c0e1b3ef2d
6 changed files with 254 additions and 1 deletions
@@ -395,7 +395,7 @@ class PseudocodeImpl(override val correspondingElement: KtElement) : Pseudocode
internalSinkInstruction = copy
}
}
if (finishIndex < mutableInstructionList.size) {
if (finishIndex < originalPseudocode.mutableInstructionList.size) {
repeatLabelsBindingForInstruction(originalPseudocode.mutableInstructionList[finishIndex],
originalToCopy,
originalLabelsForInstruction)