Revert "JVM_IR KT-50076 avoid CHECKCAST on moved dispatch receiver parameter"

This reverts commit 627d838343.
This commit is contained in:
Dmitry Petrov
2021-12-13 09:58:45 +03:00
committed by Space
parent df50a8141f
commit 6f148c594f
12 changed files with 10 additions and 191 deletions
@@ -1050,12 +1050,6 @@ class ExpressionCodegen(
MaterialValue(this, boxedRightType, expression.type)
}
IrTypeOperator.REINTERPRET_CAST -> {
val targetType = typeMapper.mapType(typeOperand)
expression.argument.accept(this, data).materialize()
MaterialValue(this, targetType, typeOperand)
}
IrTypeOperator.INSTANCEOF -> {
expression.argument.accept(this, data).materializeAt(context.irBuiltIns.anyNType)
val type = typeMapper.boxType(typeOperand)