[clang] [clang][NFC] Specify Type and ExtQuals as having 16-byte alignment (PR #68377)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 7 00:05:22 PDT 2023


================
@@ -1982,9 +1986,9 @@ class alignas(8) Type : public ExtQualsTypeCommonBase {
   Type(TypeClass tc, QualType canon, TypeDependence Dependence)
       : ExtQualsTypeCommonBase(this,
                                canon.isNull() ? QualType(this_(), 0) : canon) {
-    static_assert(sizeof(*this) <= 8 + sizeof(ExtQualsTypeCommonBase),
+    static_assert(sizeof(*this) <= 16 + sizeof(ExtQualsTypeCommonBase),
                   "changing bitfields changed sizeof(Type)!");
----------------
Endilll wrote:

Good suggestion!

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


More information about the cfe-commits mailing list