[IR] Replace some usages of KotlinType to IrType
This commit is contained in:
+2
-2
@@ -179,7 +179,7 @@ class DelegatedPropertyGenerator(declarationGenerator: DeclarationGenerator) : D
|
||||
BackingFieldLValue(
|
||||
context,
|
||||
ktDelegate.startOffsetSkippingComments, ktDelegate.endOffset,
|
||||
irDelegateField.descriptor.type.toIrType(),
|
||||
irDelegateField.owner.type,
|
||||
irDelegateField,
|
||||
thisValue,
|
||||
null
|
||||
@@ -348,7 +348,7 @@ class DelegatedPropertyGenerator(declarationGenerator: DeclarationGenerator) : D
|
||||
context,
|
||||
ktDelegate.startOffsetSkippingComments, ktDelegate.endOffset,
|
||||
irDelegate,
|
||||
irDelegate.descriptor.type.toIrType()
|
||||
irDelegate.owner.type
|
||||
)
|
||||
|
||||
private inline fun createLocalPropertyAccessor(
|
||||
|
||||
+2
-2
@@ -198,7 +198,7 @@ internal class InsertImplicitCasts(
|
||||
|
||||
override fun visitSetVariable(expression: IrSetVariable): IrExpression =
|
||||
expression.transformPostfix {
|
||||
value = value.cast(expression.symbol.descriptor.type)
|
||||
value = value.cast(expression.symbol.owner.type)
|
||||
}
|
||||
|
||||
override fun visitGetField(expression: IrGetField): IrExpression =
|
||||
@@ -215,7 +215,7 @@ internal class InsertImplicitCasts(
|
||||
|
||||
override fun visitVariable(declaration: IrVariable): IrVariable =
|
||||
declaration.transformPostfix {
|
||||
initializer = initializer?.cast(declaration.descriptor.type)
|
||||
initializer = initializer?.cast(declaration.type)
|
||||
}
|
||||
|
||||
override fun visitField(declaration: IrField): IrStatement {
|
||||
|
||||
Reference in New Issue
Block a user