From 72752b64c5f07a969bfe76dc86cba74e2ed0c633 Mon Sep 17 00:00:00 2001 From: pyos Date: Fri, 3 Sep 2021 13:34:43 +0200 Subject: [PATCH] Revert "JVM_IR: assume function reference adapters are tail-call" This reverts commit 537ce05bc97c1a1f712e17f9ec1b186eeafc9f67. #KT-48478 Fixed --- .../jetbrains/kotlin/backend/jvm/codegen/CoroutineCodegen.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/CoroutineCodegen.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/CoroutineCodegen.kt index 40f0f9048d1..3fa86eca1e3 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/CoroutineCodegen.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/CoroutineCodegen.kt @@ -142,8 +142,6 @@ private val BRIDGE_ORIGINS = setOf( JvmLoweredDeclarationOrigin.SUPER_INTERFACE_METHOD_BRIDGE, IrDeclarationOrigin.BRIDGE, IrDeclarationOrigin.BRIDGE_SPECIAL, - IrDeclarationOrigin.ADAPTER_FOR_CALLABLE_REFERENCE, - IrDeclarationOrigin.ADAPTER_FOR_SUSPEND_CONVERSION ) // These functions contain a single `suspend` tail call, the value of which should be returned as is