From b42358f893192743bae6597fae93de6337766516 Mon Sep 17 00:00:00 2001 From: Georgy Bronnikov Date: Wed, 18 Aug 2021 17:56:59 +0300 Subject: [PATCH] JVM_IR: do not index on AttributeOwnerId in AddContinuationLowering --- .../kotlin/backend/jvm/lower/AddContinuationLowering.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/AddContinuationLowering.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/AddContinuationLowering.kt index 4970f53debf..ec7f5f0fa96 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/AddContinuationLowering.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/AddContinuationLowering.kt @@ -377,7 +377,7 @@ private class AddContinuationLowering(context: JvmBackendContext) : SuspendLower // the result is called 'view', just to be consistent with old backend. private fun IrSimpleFunction.suspendFunctionViewOrStub(context: JvmBackendContext): IrSimpleFunction { if (!isSuspend) return this - return context.suspendFunctionOriginalToView.getOrPut(suspendFunctionOriginal()) { createSuspendFunctionStub(context) } + return context.suspendFunctionOriginalToView.getOrPut(this) { createSuspendFunctionStub(context) } } internal fun IrSimpleFunction.suspendFunctionOriginal(): IrSimpleFunction =