[JVM] Fix the nop removal optimization.

Never remove a nop if that would cause a line number to move
across a local lifetime boundary.

This fixes KT-42725.
This commit is contained in:
Mads Ager
2020-10-16 14:52:26 +02:00
committed by Dmitry Petrov
parent 69127445a3
commit 0505bd958a
4 changed files with 18 additions and 27 deletions
@@ -23,4 +23,4 @@ fun simpleFunVoid(f: () -> Unit): Unit {
return f()
}
// 3 NOP
// 0 NOP