From c5ff865529baf5a6f1bd6638aa2e8c4c8e5a41ad Mon Sep 17 00:00:00 2001 From: Georgy Bronnikov Date: Fri, 16 Oct 2020 18:06:55 +0300 Subject: [PATCH] EnumConstructorCall.fromSymbolDescriptor (cherry picked from commit 97f1bfae30e80d0a73cd691a1de71a3bd5032028) --- .../backend/konan/ir/interop/cenum/CEnumClassGenerator.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ir/interop/cenum/CEnumClassGenerator.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ir/interop/cenum/CEnumClassGenerator.kt index af8deb815d8..bc2da7010e0 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ir/interop/cenum/CEnumClassGenerator.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ir/interop/cenum/CEnumClassGenerator.kt @@ -120,7 +120,7 @@ internal class CEnumClassGenerator( SYNTHETIC_OFFSET, SYNTHETIC_OFFSET, IrDeclarationOrigin.IR_EXTERNAL_DECLARATION_STUB, entryDescriptor ).also { enumEntry -> - enumEntry.initializerExpression = IrExpressionBodyImpl(IrEnumConstructorCallImpl( + enumEntry.initializerExpression = IrExpressionBodyImpl(IrEnumConstructorCallImpl.fromSymbolDescriptor( SYNTHETIC_OFFSET, SYNTHETIC_OFFSET, type = irBuiltIns.unitType, symbol = symbolTable.referenceConstructor(enumDescriptor.unsubstitutedPrimaryConstructor!!), @@ -147,7 +147,7 @@ internal class CEnumClassGenerator( val irConstructor = createConstructor(descriptor.unsubstitutedPrimaryConstructor!!) val enumConstructor = context.builtIns.enum.constructors.single() irConstructor.body = irBuilder(irBuiltIns, irConstructor.symbol, SYNTHETIC_OFFSET, SYNTHETIC_OFFSET).irBlockBody { - +IrEnumConstructorCallImpl( + +IrEnumConstructorCallImpl.fromSymbolDescriptor( startOffset, endOffset, context.irBuiltIns.unitType, symbolTable.referenceConstructor(enumConstructor),