JVM_IR: remove .toKotlinType() from intrinsics.Equals
This commit is contained in:
@@ -15,6 +15,7 @@ import org.jetbrains.kotlin.codegen.AsmUtil.isPrimitive
|
||||
import org.jetbrains.kotlin.codegen.StackValue
|
||||
import org.jetbrains.kotlin.codegen.intrinsics.IntrinsicMethods
|
||||
import org.jetbrains.kotlin.config.LanguageFeature
|
||||
import org.jetbrains.kotlin.ir.descriptors.toIrBasedKotlinType
|
||||
import org.jetbrains.kotlin.ir.expressions.IrExpression
|
||||
import org.jetbrains.kotlin.ir.expressions.IrFunctionAccessExpression
|
||||
import org.jetbrains.kotlin.ir.expressions.IrStatementOrigin
|
||||
@@ -172,11 +173,11 @@ class Ieee754Equals(val operandType: Type) : IntrinsicMethod() {
|
||||
val arg0 = expression.getValueArgument(0)!!
|
||||
val arg1 = expression.getValueArgument(1)!!
|
||||
|
||||
val arg0Type = arg0.type.toKotlinType()
|
||||
val arg0Type = arg0.type.toIrBasedKotlinType()
|
||||
if (!arg0Type.isPrimitiveNumberOrNullableType() && !arg0Type.upperBoundedByPrimitiveNumberOrNullableType())
|
||||
throw AssertionError("Should be primitive or nullable primitive type: $arg0Type")
|
||||
|
||||
val arg1Type = arg1.type.toKotlinType()
|
||||
val arg1Type = arg1.type.toIrBasedKotlinType()
|
||||
if (!arg1Type.isPrimitiveNumberOrNullableType() && !arg1Type.upperBoundedByPrimitiveNumberOrNullableType())
|
||||
throw AssertionError("Should be primitive or nullable primitive type: $arg1Type")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user