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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 13:19:35 PST 2024


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

After an offline discussion, we agreed to keep the boolean, and to add an additional assert to ensure that the boolean is used correctly.

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


More information about the cfe-commits mailing list