Extend LVT record of alive variables to end of next suspension point
Otherwise, arguments of suspend call become invisible in async stack trace #KT-44714
This commit is contained in:
+6
-5
@@ -14,12 +14,13 @@ fun main(args: Array<String>) {
|
||||
@BuilderInference
|
||||
suspend fun SequenceScope<Int>.awaitSeq(): Int = 42
|
||||
|
||||
|
||||
// 1 LOCALVARIABLE a I L[0-9]+ L19
|
||||
|
||||
/* TODO: JVM_IR does not generate LINENUMBER at the end of the lambda */
|
||||
// JVM_TEMPLATES
|
||||
// 1 LINENUMBER 9 L19
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 1 LOCALVARIABLE a I L[0-9]+ L4
|
||||
|
||||
// JVM_TEMPLATES
|
||||
// 1 LOCALVARIABLE a I L[0-9]+ L19
|
||||
// TODO: Old BE generates LINENUMBER label after suspension point, unlike JVM_BE
|
||||
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
Reference in New Issue
Block a user