0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-18 03:46:49 +00:00
Harald van Dijk ca9ec7dfc3
[ARM, AArch64] Fix passing of structures with aligned base classes ()
RecordLayout::UnadjustedAlignment was documented as "Maximum of the
alignments of the record members in characters", but
RecordLayout::getUnadjustedAlignment(), which just returns
UnadjustedAlignment, was documented as getting "the record alignment in
characters, before alignment adjustement." These are not the same thing:
the former excludes alignment of base classes, the latter takes it into
account. ItaniumRecordLayoutBuilder::LayoutBase was setting it according
to the former, but the AAPCS calling convention handling, currently the
only user, relies on it being set according to the latter.

Fixes .
2025-04-18 02:11:02 +01:00
..