[IR] Replace some usages of KotlinType to IrType

This commit is contained in:
Mikhail Glukhikh
2020-05-26 12:08:03 +03:00
parent 2d842d061e
commit 7c7f87e729
2 changed files with 4 additions and 4 deletions
@@ -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(
@@ -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 {