[IR] Check pureness in inlining lowering after transformation
This commit is contained in:
+2
-2
@@ -546,11 +546,11 @@ class FunctionInlining(
|
||||
return@forEach
|
||||
}
|
||||
|
||||
val argumentExtracted = !argument.argumentExpression.isPure(false)
|
||||
|
||||
// Arguments may reference the previous ones - substitute them.
|
||||
val variableInitializer = argument.argumentExpression.transform(substitutor, data = null)
|
||||
|
||||
val argumentExtracted = !argument.argumentExpression.isPure(false, context = context)
|
||||
|
||||
if (!argumentExtracted) {
|
||||
substituteMap[argument.parameter] = variableInitializer
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user