[clang] [clang] Respect field alignment in layout compatibility of structs (PR #84313)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 11:25:31 PST 2024


================
@@ -19185,7 +19185,7 @@ static bool isLayoutCompatible(ASTContext &C, EnumDecl *ED1, EnumDecl *ED2) {
 
 /// Check if two fields are layout-compatible.
----------------
erichkeane wrote:

Can you update this comment for the new member?  Is it both fields that are union members, or just one?

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


More information about the cfe-commits mailing list