Corresponding fix to js de-descriptiozation

(cherry picked from commit f542026312055e0ed49846f4dc76500ad1f44a32)
This commit is contained in:
Roman Artemev
2020-08-27 11:40:21 +03:00
committed by Vasily Levchenko
parent bc3b4f3954
commit 26bec6f739
2 changed files with 2 additions and 5 deletions
@@ -494,7 +494,7 @@ private val Context.getLoweredInlineClassConstructor: (IrConstructor) -> IrSimpl
require(irConstructor.constructedClass.isInlined())
require(!irConstructor.isPrimary)
val descriptor = WrappedSimpleFunctionDescriptor(irConstructor.descriptor.annotations, irConstructor.descriptor.source)
val descriptor = WrappedSimpleFunctionDescriptor()
IrFunctionImpl(
irConstructor.startOffset, irConstructor.endOffset,
IrDeclarationOrigin.DEFINED,
@@ -109,10 +109,7 @@ internal class EnumConstructorsLowering(val context: Context) : ClassLoweringPas
private fun lowerEnumConstructor(constructor: IrConstructor): IrConstructor {
val startOffset = constructor.startOffset
val endOffset = constructor.endOffset
val loweredConstructor = WrappedClassConstructorDescriptor(
constructor.descriptor.annotations,
constructor.descriptor.source
).let {
val loweredConstructor = WrappedClassConstructorDescriptor().let {
IrConstructorImpl(
startOffset, endOffset,
constructor.origin,