From 39808789c37d65dcda30cf66fed9cf26fb6d192e Mon Sep 17 00:00:00 2001 From: Roman Artemev Date: Fri, 28 Aug 2020 16:12:38 +0300 Subject: [PATCH] [KLIB] Fix SOE in K/N - fixes KT-41324 --- .../jetbrains/kotlin/ir/util/DeclarationStubGenerator.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DeclarationStubGenerator.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DeclarationStubGenerator.kt index be2f7cb8714..3966021d176 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DeclarationStubGenerator.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DeclarationStubGenerator.kt @@ -198,13 +198,11 @@ class DeclarationStubGenerator( } if (createPropertyIfNeeded && descriptor is PropertyGetterDescriptor) { - val propertySymbol = symbolTable.referenceProperty(descriptor.correspondingProperty) - val property = irProviders_.getDeclaration(propertySymbol) as IrProperty + val property = generatePropertyStub(descriptor.correspondingProperty) return property.getter!! } if (createPropertyIfNeeded && descriptor is PropertySetterDescriptor) { - val propertySymbol = symbolTable.referenceProperty(descriptor.correspondingProperty) - val property = irProviders_.getDeclaration(propertySymbol) as IrProperty + val property = generatePropertyStub(descriptor.correspondingProperty) return property.setter!! }