diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InlineConstructorsTransformation.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InlineConstructorsTransformation.kt index 6a87e3147ea..bd45b542ccd 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InlineConstructorsTransformation.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InlineConstructorsTransformation.kt @@ -69,7 +69,7 @@ internal class InlineConstructorsTransformation(val context: Context): IrElement val statements = (functionDeclaration.body as IrBlockBody).statements replaceDelegatingConstructorCall(statements, functionDescriptor) functionDeclaration.transformChildrenVoid(ValueSubstitutor()) - context.ir.originalModuleIndex.functions[functionDescriptor] = functionDeclaration + context.ir.originalModuleIndex.functions[functionDescriptor.original] = functionDeclaration return irCall }