From 5a1be2715fd3c67f9cccb9a4d77842e5777c1306 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Thu, 8 Jun 2017 09:38:16 +0200 Subject: [PATCH] Add kFunctionImpl to ReflectionTypes --- .../org/jetbrains/kotlin/backend/common/CommonBackendContext.kt | 1 + .../src/org/jetbrains/kotlin/backend/common/ir/Ir.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/CommonBackendContext.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/CommonBackendContext.kt index d33d8557e8b..6a65cce7003 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/CommonBackendContext.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/CommonBackendContext.kt @@ -84,6 +84,7 @@ class ReflectionTypes(module: ModuleDescriptor, internalPackage: FqName) { val kMutableProperty0: ClassDescriptor by ClassLookup(kotlinReflectScope) val kMutableProperty1: ClassDescriptor by ClassLookup(kotlinReflectScope) val kMutableProperty2: ClassDescriptor by ClassLookup(kotlinReflectScope) + val kFunctionImpl: ClassDescriptor by ClassLookup(internalScope) val kProperty0Impl: ClassDescriptor by ClassLookup(internalScope) val kProperty1Impl: ClassDescriptor by ClassLookup(internalScope) val kProperty2Impl: ClassDescriptor by ClassLookup(internalScope) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/ir/Ir.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/ir/Ir.kt index 6751e8882d9..3c52a42b5dd 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/ir/Ir.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/ir/Ir.kt @@ -131,7 +131,7 @@ open class Symbols(val context: T, private val symb .single().getter!! ) - val kFunctionImpl = symbolTable.referenceClass(context.getInternalClass("KFunctionImpl")) + val kFunctionImpl = symbolTable.referenceClass(context.reflectionTypes.kFunctionImpl) val kProperty0Impl = symbolTable.referenceClass(context.reflectionTypes.kProperty0Impl) val kProperty1Impl = symbolTable.referenceClass(context.reflectionTypes.kProperty1Impl)