[Lldb-commits] [lldb] [lldb][TypeSystem] Better support for _BitInt types (PR #165689)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 30 10:51:23 PDT 2025


================
@@ -814,13 +814,17 @@ DWARFASTParserClang::ParseTypeModifier(const SymbolContext &sc,
     // there...
     [[fallthrough]];
 
-  case DW_TAG_base_type:
+  case DW_TAG_base_type: {
     resolve_state = Type::ResolveState::Full;
+    // If a builtin type's size isn't a multiple of a byte, DWARF producers may
+    // add a precise bit-size to the type. Use the most precise bit-size
+    // possible.
+    uint64_t bit_size = attrs.data_bit_size ? *attrs.data_bit_size
----------------
bulbazord wrote:

Suggestion: `const`

https://github.com/llvm/llvm-project/pull/165689


More information about the lldb-commits mailing list