jansvoboda11 updated this revision to Diff 462965. jansvoboda11 added a comment.
Document reason for `alignas`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134653/new/ https://reviews.llvm.org/D134653 Files: clang/include/clang/Basic/Module.h Index: clang/include/clang/Basic/Module.h =================================================================== --- clang/include/clang/Basic/Module.h +++ clang/include/clang/Basic/Module.h @@ -93,7 +93,9 @@ }; /// Describes a module or submodule. -class Module { +/// +/// Aligned to 8 bytes to allow for llvm::PointerIntPair<Module *, 3>. +class alignas(8) Module { public: /// The name of this module. std::string Name;
Index: clang/include/clang/Basic/Module.h =================================================================== --- clang/include/clang/Basic/Module.h +++ clang/include/clang/Basic/Module.h @@ -93,7 +93,9 @@ }; /// Describes a module or submodule. -class Module { +/// +/// Aligned to 8 bytes to allow for llvm::PointerIntPair<Module *, 3>. +class alignas(8) Module { public: /// The name of this module. std::string Name;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits