================ @@ -1507,6 +1508,9 @@ class ExtQuals : public ExtQualsTypeCommonBase, public llvm::FoldingSetNode { : ExtQualsTypeCommonBase(baseType, canon.isNull() ? QualType(this_(), 0) : canon), Quals(quals) { + static_assert(alignof(decltype(*this)) % TypeAlignment == 0, ---------------- AaronBallman wrote:
This feels unnecessary because we've added `alignas(TypeAlignment)` to the class -- it's basically statically asserting that the compiler honored the alignment we requested (which it has to do anyway or else the program is ill-formed), WDYT? https://github.com/llvm/llvm-project/pull/68377 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits