[Lldb-commits] [lldb] [LLDB] Respect the DW_AT_alignment attribute. (PR #73307)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 27 23:30:09 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) {
----------------
Michael137 wrote:
This comment is now out-of-date. Can you briefly update it to reflect the newest changes? I.e., that this is also used for setting alignment on empty classes?
https://github.com/llvm/llvm-project/pull/73307
More information about the lldb-commits
mailing list