[clang] [ARM, AArch64] Fix passing of structures with aligned base classes (PR #135564)

John McCall via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 14 13:56:55 PDT 2025


================
@@ -1302,6 +1302,7 @@ ItaniumRecordLayoutBuilder::LayoutBase(const BaseSubobjectInfo *Base) {
     setSize(std::max(getSize(), Offset + Layout.getSize()));
 
   // Remember max struct/class alignment.
+  UnadjustedAlignment = std::max(UnadjustedAlignment, PreferredBaseAlign);
----------------
rjmccall wrote:

There should at least be a test case for it.

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


More information about the cfe-commits mailing list