[FE1.0] Fix CFG for inline function calls in finally blocks.

The body of the InlinedLocalFunctionDeclarationInstruction was
not copied. That confuses the information on the exceptional edge
with the information on the normal edge.

^KT-52131 Fixed
This commit is contained in:
Mads Ager
2022-04-25 14:55:04 +02:00
committed by Mikhail Glukhikh
parent 2100afd122
commit 17b5e46547
7 changed files with 39 additions and 2 deletions
@@ -0,0 +1,10 @@
// FIR_IDENTICAL
fun foo(): Int {
var result = 0
try {
} finally {
42.let { }
}
return result
}
@@ -0,0 +1,3 @@
package
public fun foo(): kotlin.Int