From 8f1073cab8263b182a46af04cb61274a15a87fd6 Mon Sep 17 00:00:00 2001 From: Konstantin Anisimov Date: Thu, 18 May 2017 13:50:26 +0700 Subject: [PATCH] Inliner searches function declaration using descriptor.original --- .../backend/konan/lower/InlineConstructorsTransformation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }