Skip to content

Commit c7d210b

Browse files
committed
changed parent bit allocations
1 parent 3cec6fc commit c7d210b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bolt/include/bolt/Core/DebugNames.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class DWARF5AcceleratorTable {
6767
uint32_t CompUnit : 1;
6868
uint32_t TypeUnit : 1;
6969
uint32_t DieOffset : 1;
70-
uint32_t Parent : 1;
71-
uint32_t TypeHash : 2;
70+
uint32_t Parent : 2;
71+
uint32_t TypeHash : 1;
7272
uint32_t Tag : 26;
7373
} Bits;
7474
uint32_t Value = 0;

bolt/lib/Core/DebugNames.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ DWARF5AcceleratorTable::TagIndex DWARF5AcceleratorTable::getAbbrevIndex(
343343
AbbrvDesc.Bits.TypeUnit = true;
344344
break;
345345
case dwarf::DW_IDX_parent:
346-
AbbrvDesc.Bits.Parent = true;
346+
AbbrvDesc.Bits.Parent = 0;
347347
break;
348348
case dwarf::DW_IDX_type_hash:
349349
AbbrvDesc.Bits.TypeHash = true;

0 commit comments

Comments
 (0)