JVM_IR: do not generate redundant load+stores before inline calls

This commit is contained in:
pyos
2019-09-27 11:05:46 +02:00
committed by max-kammerer
parent 59408242db
commit cea69e0706
8 changed files with 57 additions and 28 deletions
@@ -0,0 +1,13 @@
// FILE: 1.kt
package test
inline fun f(g: () -> Int) {}
inline fun h(g: () -> Int) = run { f(g) }
// FILE: 2.kt
import test.*
fun box(): String {
h { 1 }
return "OK"
}