================
@@ -17102,6 +17102,37 @@ void Sema::DiscardMisalignedMemberAddress(const Type
*T, Expr *E) {
}
}
+/// Return the maximum alignment record layout allows for \p FD, if packing or
+/// a typedef with a lowered alignment limits it. Mirrors RecordLayoutBuilder.
----------------
mattst88 wrote:
Dropped the helper. The check now reads the record alignment and field offset
from the computed layout and compares them with the alignment of the field's
type. This computes a record's layout when the address of one of its members is
taken, which reordered the dump in
`Layout/ms-x86-lazy-empty-nonvirtual-base.cpp`. It also means a class that is
still being defined is skipped, since it has no layout yet.
https://github.com/llvm/llvm-project/pull/219096
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits