Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions
Mads Ager 6d9f02cfc6 [JVM_IR] Fix range of locals in connection with finally blocks.
For code such as:

```
try {
  var y = "y"
  for (i in 0 until 1) {
    return y
  }
} finally {
  println("finally")
}
```

The local variables `y` and `i` ended up covering the finally block as
well in the debugger.

This change splits the range of the locals so that they do
not cover the finally block.

This change does not change the inliner to do similar transformations,
so the range of locals is still wrong win finally blocks when inlined
into an inline function. Added a failing test to that effect.
2021-05-03 07:43:37 +02:00
..
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00
2020-11-09 16:04:43 +03:00