Generate 'nop' instruction on lambda call when everything on line is going to be eliminated by inliner (KT-6477)
(cherry picked from commit 462bdb2) #KT-6477 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
708a0e3b5d
commit
87b628a3f7
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at noParameterLambdaArgumentCallInInline.kt:16
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! noParameterLambdaArgumentCallInInline.NoParameterLambdaArgumentCallInInlineKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
noParameterLambdaArgumentCallInInline.kt:16
|
||||
noParameterLambdaArgumentCallInInline.kt:17
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
package noParameterLambdaArgumentCallInInline
|
||||
|
||||
/*
|
||||
KT-6477 Breakpoints do not work in inline functions at line where inlined argument without arguments is invoked
|
||||
*/
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
lookAtMe {
|
||||
val c = "c"
|
||||
}
|
||||
}
|
||||
|
||||
inline fun lookAtMe(f: () -> Unit) {
|
||||
val a = "a"
|
||||
//Breakpoint!
|
||||
f()
|
||||
val b = "b"
|
||||
}
|
||||
Reference in New Issue
Block a user