Don't add unused label if variables are absent

This commit is contained in:
Mikhael Bogdanov
2019-11-15 14:47:46 +01:00
parent be3eed5f1f
commit 8adac2d1ea
4 changed files with 29 additions and 1 deletions
@@ -0,0 +1,16 @@
// KOTLIN_CONFIGURATION_FLAGS: +JVM.DISABLE_OPTIMIZATION
fun bar() {}
fun foo(a: Boolean) { if (a) { foo(a) } }
// method start
// 5 L0
//return
// 3 L1
// method end
// 2 L2
// 0 L3