Fix IMPLICIT_COERCION_TO_UNIT

This commit is contained in:
Mikhael Bogdanov
2018-06-13 10:39:45 +02:00
parent ede751c074
commit 0f7dc6e8af
@@ -585,8 +585,8 @@ class ExpressionCodegen(
val asmType = expression.typeOperand.asmType
when (expression.operator) {
IrTypeOperator.IMPLICIT_COERCION_TO_UNIT -> {
expression.argument.accept(this, data)
coerce(expression.argument.asmType, Type.VOID_TYPE, mv)
val result = expression.argument.accept(this, data)
coerce(result.type, Type.VOID_TYPE, mv)
return none()
}