Skip to content

Commit

Permalink
Inliner searches function declaration using descriptor.original
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinAnisimov committed May 18, 2017
1 parent de5ff23 commit 8f1073c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8f1073c

Please sign in to comment.