[PATCH] D124006: [DebugInfo] Use the 'getTypeAlignIfRequired' function to get DW_AT_alignment correct when attribute((__aligned__)) is present.
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 21 20:48:33 PDT 2022
dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.
Looks good, thanks!
================
Comment at: clang/test/CodeGenCXX/debug-info-struct-align.cpp:11
+} __attribute__((aligned(1)));
+struct MyType mt;
+
----------------
You can drop the "struct" here and from other references to these types (in mt1/mt2 and the alignof calls)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124006/new/
https://reviews.llvm.org/D124006
More information about the cfe-commits
mailing list