llvm-project
ca9ec7df - [ARM, AArch64] Fix passing of structures with aligned base classes (#135564)

Commit
267 days ago
[ARM, AArch64] Fix passing of structures with aligned base classes (#135564) 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 #135551.
Author
Parents
Loading