[clang] [llvm] [DebugInfo] Emit DW_AT_bit_size for _BitInt types and others (PR #164372)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 21 10:27:41 PDT 2025
================
@@ -766,8 +766,17 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, const DIBasicType *BTy) {
addUInt(Buffer, dwarf::DW_AT_encoding, dwarf::DW_FORM_data1,
BTy->getEncoding());
- uint64_t Size = BTy->getSizeInBits() >> 3;
- addUInt(Buffer, dwarf::DW_AT_byte_size, std::nullopt, Size);
+ uint64_t SizeInBytes = divideCeil(BTy->getSizeInBits(), 8);
----------------
OCHyams wrote:
Oh sorry, I misunderstood what you were saying about the byte storage size. I'll get it now, look into it tomorrow
https://github.com/llvm/llvm-project/pull/164372
More information about the llvm-commits
mailing list