Part of fixes for #72913. clang emits `DW_AT_alignment` attribute, however LLDB didn't respect it, resulting in incorrect RecordDecls built by lldb. This only fixes non-inheritance cases. The inheritance case will be handled in a follow-up patch.
17 lines
153 B
C++
17 lines
153 B
C++
struct B1 {
|
|
char f1;
|
|
};
|
|
|
|
struct alignas(8) B2 {
|
|
char f2;
|
|
};
|
|
|
|
struct D : B1, B2 {};
|
|
|
|
D d3g;
|
|
|
|
struct alignas(8) EmptyClassAlign8 {
|
|
} t;
|
|
|
|
int main() {}
|