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:
Ilmir Usmanov
2021-03-08 18:12:51 +01:00
parent b6bb8a576e
commit e79c9a3618
3 changed files with 16 additions and 16 deletions
@@ -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