JVM_IR: do not generate redundant load+stores before inline calls
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user