[debug info][KT-20391] don't confuse lldb with array tag
This commit is contained in:
committed by
Vasily Levchenko
parent
a118fc5271
commit
89a2b48c99
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user