diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/FunctionInlining.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/FunctionInlining.kt index c6375efe3e6..a3d0bf4975a 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/FunctionInlining.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/FunctionInlining.kt @@ -324,7 +324,7 @@ private class Inliner(val currentScope: ScopeWithIr, val context: Context) { val parameterToArgumentNew = mutableMapOf () // Result map parameter_descriptor -> evaluated_argument_expression. val evaluationStatements = mutableListOf() // List of evaluation statements. parameterToArgumentOld.forEach { - val parameterDescriptor = it.parameterDescriptor.original as ValueDescriptor + val parameterDescriptor = it.parameterDescriptor val argumentExpression = it.argumentExpression if (!argumentNeedsEvaluation(argumentExpression)) { // If argument does not need evaluation