================
@@ -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.
----------------
Endilll wrote:
I think (and you comment suggests) that you duplicate a bit of logic of
`RecordLayoutBuilder`. Why can't we reuse it? Keeping them in sync doesn't
sound fun to me.
https://github.com/llvm/llvm-project/pull/219096
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits