JVM_IR: Treat suspend main wrapper as always tail-call function

In other words, never generate suspend call markers inside it.
This commit is contained in:
Ilmir Usmanov
2020-02-20 18:49:06 +01:00
parent 8c4eef9844
commit 325ad14ac9
4 changed files with 21 additions and 1 deletions
@@ -0,0 +1,6 @@
// WITH_COROUTINES
// TREAT_AS_ONE_FILE
suspend fun main() {}
// 0 INVOKESTATIC kotlin/jvm/internal/InlineMarker.mark