Support smap creation for functions inlined with IR inliner

This commit is contained in:
Ivan Kylchik
2022-12-16 14:53:11 +01:00
committed by Space Team
parent d451bc94a2
commit 32a7633c06
14 changed files with 409 additions and 68 deletions
@@ -205,7 +205,7 @@ fun IrExpression.implicitCastIfNeededTo(type: IrType) =
IrTypeOperatorCallImpl(startOffset, endOffset, type, IrTypeOperator.IMPLICIT_CAST, type, this)
fun IrFunctionAccessExpression.usesDefaultArguments(): Boolean =
symbol.owner.valueParameters.any { this.getValueArgument(it.index) == null }
symbol.owner.valueParameters.any { this.getValueArgument(it.index) == null && (!it.isVararg || it.defaultValue != null) }
fun IrValueParameter.createStubDefaultValue(): IrExpressionBody =
factory.createExpressionBody(