Assert prevents compiling stdlib - should be suspended

This commit is contained in:
Konstantin Anisimov
2017-04-04 07:48:51 +07:00
committed by KonstantinAnisimov
parent 36ddaa46e4
commit 526a496d59
@@ -211,7 +211,7 @@ internal class FunctionInlining(val context: Context): IrElementTransformerVoid(
private fun inlineFunction(irCall: IrCall): IrExpression {
val irDeclaration = getFunctionDeclaration(irCall)
assert (irDeclaration != null) { "Inliner failed to obtain function declaration" }
if (irDeclaration == null) return irCall
val functionDeclaration = irDeclaration as IrFunction
val typeArgsMap = (irCall as IrMemberAccessExpressionBase).typeArguments