Do not evaluate Block argument
This commit is contained in:
committed by
KonstantinAnisimov
parent
c278853f10
commit
4cb4615e7c
+1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user