[IR] Initialize IrFunction.returnType eagerly, when possible
This commit is contained in:
committed by
Space Team
parent
392fa8f9bd
commit
e9005e4fed
+1
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user