[Lldb-commits] [lldb] [LLDB] Respect the DW_AT_alignment attribute. (PR #73307)

Haojian Wu via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 28 00:25:24 PST 2023


================
@@ -1926,12 +1930,13 @@ DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc,
       // TypeSystemClang is always in C++ mode, but some compilers such as
       // GCC and Clang give empty structs a size of 0 in C mode (in contrast to
       // the size of 1 for empty structs that would be computed in C++ mode).
-      if (attrs.byte_size) {
+      if (attrs.byte_size || attrs.alignment) {
----------------
hokein wrote:

Done.

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


More information about the lldb-commits mailing list