[IR] Initialize IrFunction.returnType eagerly, when possible

This commit is contained in:
Wojciech Litewka
2024-03-07 11:54:06 +01:00
committed by Space Team
parent 392fa8f9bd
commit e9005e4fed
3 changed files with 3 additions and 6 deletions
@@ -94,7 +94,7 @@ internal interface DescriptorToIrTranslationMixin {
visibility,
isInline,
isExpect,
null,
constructorDescriptor.returnType.toIrType(),
it,
isPrimary,
isEffectivelyExternal(),
@@ -109,7 +109,6 @@ internal interface DescriptorToIrTranslationMixin {
it.parent = irConstructor
}
}
irConstructor.returnType = constructorDescriptor.returnType.toIrType()
irConstructor.generateAnnotations()
return irConstructor
}