JVM_IR: remove .toKotlinType() from PromisedValue
This commit is contained in:
+3
-2
@@ -11,6 +11,7 @@ import org.jetbrains.kotlin.backend.jvm.ir.erasedUpperBound
|
|||||||
import org.jetbrains.kotlin.backend.jvm.lower.inlineclasses.InlineClassAbi
|
import org.jetbrains.kotlin.backend.jvm.lower.inlineclasses.InlineClassAbi
|
||||||
import org.jetbrains.kotlin.codegen.AsmUtil
|
import org.jetbrains.kotlin.codegen.AsmUtil
|
||||||
import org.jetbrains.kotlin.codegen.StackValue
|
import org.jetbrains.kotlin.codegen.StackValue
|
||||||
|
import org.jetbrains.kotlin.ir.descriptors.toIrBasedKotlinType
|
||||||
import org.jetbrains.kotlin.ir.types.*
|
import org.jetbrains.kotlin.ir.types.*
|
||||||
import org.jetbrains.kotlin.ir.util.parentAsClass
|
import org.jetbrains.kotlin.ir.util.parentAsClass
|
||||||
import org.jetbrains.kotlin.resolve.jvm.AsmTypes
|
import org.jetbrains.kotlin.resolve.jvm.AsmTypes
|
||||||
@@ -42,12 +43,12 @@ abstract class PromisedValue(val codegen: ExpressionCodegen, val type: Type, val
|
|||||||
|
|
||||||
when {
|
when {
|
||||||
isFromTypeUnboxed && !isToTypeUnboxed -> {
|
isFromTypeUnboxed && !isToTypeUnboxed -> {
|
||||||
StackValue.boxInlineClass(erasedSourceType.toKotlinType(), mv)
|
StackValue.boxInlineClass(erasedSourceType.toIrBasedKotlinType(), mv)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
!isFromTypeUnboxed && isToTypeUnboxed -> {
|
!isFromTypeUnboxed && isToTypeUnboxed -> {
|
||||||
StackValue.unboxInlineClass(type, erasedTargetType.toKotlinType(), mv)
|
StackValue.unboxInlineClass(type, erasedTargetType.toIrBasedKotlinType(), mv)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user