From 89a2b48c99dc7e3adb638fbee9fdc7a53fab4847 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Fri, 3 Nov 2017 13:35:26 +0300 Subject: [PATCH] [debug info][KT-20391] don't confuse lldb with array tag --- .../org/jetbrains/kotlin/backend/konan/llvm/DebugUtils.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/DebugUtils.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/DebugUtils.kt index 8794e292c59..1598a88afd7 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/DebugUtils.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/DebugUtils.kt @@ -152,11 +152,6 @@ internal fun generateDebugInfoHeader(context: Context) { internal fun KotlinType.dwarfType(context:Context, targetData:LLVMTargetDataRef): DITypeOpaqueRef { when { KotlinBuiltIns.isPrimitiveType(this) -> return debugInfoBaseType(context, targetData, this.getJetTypeFqName(false), llvmType(context), encoding(context).value.toInt()) - KotlinBuiltIns.isArray(this) -> { - val arrayElementType = context.builtIns.getArrayElementType(this) - return DICreateArrayType(context.debugInfo.builder, arrayElementType.size(context), arrayElementType.alignment(context), - arrayElementType.diType(context, targetData), 1) as DITypeOpaqueRef - } else -> { val classDescriptor = TypeUtils.getClassDescriptor(this) return when {