[IR] Fixed wrong IrCall type (to fix IR validation)

This commit is contained in:
Igor Chevdar
2023-02-09 13:26:02 +02:00
committed by Space Team
parent 18e213426c
commit 1e8cd91e0f
@@ -355,7 +355,7 @@ open class DefaultParameterInjector(
return visitFunctionAccessExpression(expression) { return visitFunctionAccessExpression(expression) {
with(expression) { with(expression) {
IrCallImpl( IrCallImpl(
startOffset, endOffset, type, it as IrSimpleFunctionSymbol, startOffset, endOffset, (it as IrSimpleFunctionSymbol).owner.returnType, it,
typeArgumentsCount = typeArgumentsCount, typeArgumentsCount = typeArgumentsCount,
valueArgumentsCount = it.owner.valueParameters.size, valueArgumentsCount = it.owner.valueParameters.size,
origin = LoweredStatementOrigins.DEFAULT_DISPATCH_CALL, origin = LoweredStatementOrigins.DEFAULT_DISPATCH_CALL,