[clang] [clang][NFC] Specify Type and ExtQuals as having 16-byte alignment (PR #68377)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 5 23:28:45 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)!");
----------------
cor3ntin wrote:
Can you explain why you think changing the size of `Type` would have no impact?
https://github.com/llvm/llvm-project/pull/68377
More information about the cfe-commits
mailing list