File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1689,8 +1689,8 @@ Error MetadataLoader::MetadataLoaderImpl::parseOneMetadata(
1689
1689
}
1690
1690
}
1691
1691
1692
- if (Record.size () > 25 && Record[25 ] != dwarf::DW_APPLE_ENUM_KIND_invalid)
1693
- EnumKind = Record[25 ];
1692
+ if (Record.size () > 24 && Record[24 ] != dwarf::DW_APPLE_ENUM_KIND_invalid)
1693
+ EnumKind = Record[24 ];
1694
1694
1695
1695
DICompositeType *CT = nullptr ;
1696
1696
if (Identifier)
Original file line number Diff line number Diff line change 1
1
; RUN: llc < %s -filetype=obj -o %t
2
2
; RUN: llvm-dwarfdump -v %t | FileCheck %s
3
+ ;
4
+ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s --check-prefix=CHECK-METADATA
3
5
4
6
; C++ source to regenerate:
5
7
; enum __attribute__((enum_extensibility(open))) OpenEnum {
12
14
;
13
15
; $ clang++ -O0 -g debug-info-enum-kind.cpp -c
14
16
17
+ ; CHECK-METADATA: enumKind: DW_APPLE_ENUM_KIND_Open
18
+ ; CHECK-METADATA: enumKind: DW_APPLE_ENUM_KIND_Closed
15
19
16
20
; CHECK: .debug_abbrev contents:
17
21
You can’t perform that action at this time.
0 commit comments