From 4ed00be9e53ad5c8e387681554adffeccfb0489e Mon Sep 17 00:00:00 2001 From: Roman Artemev Date: Fri, 14 Feb 2020 15:45:35 +0300 Subject: [PATCH] Fix usage of descriptor API (cherry picked from commit 71abe130dcc97fdf9e64e272bb4b24cb94bdb46f) --- .../src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt index 101a98b17f2..cf3045dad1f 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt @@ -67,7 +67,7 @@ internal fun IrClass.storageKind(context: Context): ObjectStorageKind = when { } val IrField.isMainOnlyNonPrimitive get() = when { - descriptor.type.computePrimitiveBinaryTypeOrNull() != null -> false + type.computePrimitiveBinaryTypeOrNull() != null -> false else -> storageKind == FieldStorageKind.MAIN_THREAD }