Added recursive inlining

This commit is contained in:
Igor Chevdar
2017-04-03 17:02:01 +03:00
parent b9507d9036
commit ee3e408dcb
@@ -187,6 +187,7 @@ internal class FunctionInlining(val context: Context): IrElementTransformerVoid(
//-------------------------------------------------------------------------//
private fun createInlineFunctionBody(functionDeclaration: IrFunction): IrInlineFunctionBody? {
functionDeclaration.transformChildrenVoid(this) // Inline recursively.
val originBlockBody = functionDeclaration.body
if (originBlockBody == null) return null // TODO workaround