backend: workaround boxing of IMPLICIT_INTEGER_COERCION result

This commit is contained in:
Svyatoslav Scherbina
2017-03-06 11:44:21 +07:00
committed by SvyatoslavScherbina
parent a1f2b572a8
commit ac757e1285
@@ -112,6 +112,15 @@ private class AutoboxingTransformer(val context: Context) : AbstractValueUsageTr
val actualType = when (this) {
is IrCall -> this.descriptor.original.returnType ?: this.type
is IrGetField -> this.descriptor.original.type
is IrTypeOperatorCall -> when (this.operator) {
IrTypeOperator.IMPLICIT_INTEGER_COERCION ->
// TODO: is it a workaround for inconsistent IR?
this.typeOperand
else -> this.type
}
else -> this.type
}