Remove obsolete code
This commit is contained in:
-10
@@ -199,16 +199,6 @@ class ExpressionCodegen(
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal fun genOrGetLocal(expression: IrExpression, type: Type, parameterType: IrType, data: BlockInfo): StackValue {
|
internal fun genOrGetLocal(expression: IrExpression, type: Type, parameterType: IrType, data: BlockInfo): StackValue {
|
||||||
if (irFunction.origin == IrDeclarationOrigin.FUNCTION_FOR_DEFAULT_PARAMETER) {
|
|
||||||
if (expression is IrTypeOperatorCall && expression.operator == IrTypeOperator.IMPLICIT_CAST) {
|
|
||||||
// inline lambda parameters are passed from `foo$default` to `foo` call with implicit cast,
|
|
||||||
// we need return pure StackValue.local value to be able proper inline this parameter later
|
|
||||||
if (expression.type.makeNullable() == expression.argument.type) {
|
|
||||||
return genOrGetLocal(expression.argument, type, parameterType, data)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return if (expression is IrGetValue)
|
return if (expression is IrGetValue)
|
||||||
StackValue.local(findLocalIndex(expression.symbol), frameMap.typeOf(expression.symbol), expression.type.toIrBasedKotlinType())
|
StackValue.local(findLocalIndex(expression.symbol), frameMap.typeOf(expression.symbol), expression.type.toIrBasedKotlinType())
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user