[clang][modules] Over-align the `Module` class

This makes `llvm::PointerIntPair<Module *, 3>` from f35230ae work across platforms.

Reviewed By: srj

Differential Revision: https://reviews.llvm.org/D134653
This commit is contained in:
Jan Svoboda 2022-09-26 09:40:02 -07:00
parent 10a35632d5
commit 715bd12d2e
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ struct ASTFileSignature : std::array<uint8_t, 20> {
};
/// 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;