Do not evaluate Block argument

This commit is contained in:
Konstantin Anisimov
2017-03-24 15:36:01 +07:00
committed by KonstantinAnisimov
parent c278853f10
commit 4cb4615e7c
@@ -91,6 +91,7 @@ internal class FunctionInlining(val context: Context): IrElementTransformerVoid(
if (expression is IrGetValue) return false // Parameter is already GetValue - nothing to evaluate. if (expression is IrGetValue) return false // Parameter is already GetValue - nothing to evaluate.
if (expression is IrConst<*>) return false // Parameter is constant - nothing to evaluate. if (expression is IrConst<*>) return false // Parameter is constant - nothing to evaluate.
if (expression is IrCallableReference) return false // Parameter is nothing to evaluate. if (expression is IrCallableReference) return false // Parameter is nothing to evaluate.
if (expression is IrBlock) return false // Parameter is nothing to evaluate.
if (isLambdaExpression(expression)) return false // Parameter is lambda - will be inlined. if (isLambdaExpression(expression)) return false // Parameter is lambda - will be inlined.
return true return true
} }