AST: align ImportedModule to 64-bits

Align `ImportedModule` to 64-bits as it is used in other types which
force the 8-byte alignment for the layout.
This commit is contained in:
Saleem Abdulrasool
2020-09-05 18:16:03 -07:00
parent 923d6ed66b
commit 7128611a9d

View File

@@ -204,7 +204,7 @@ class ModuleDecl : public DeclContext, public TypeDecl {
public:
typedef ArrayRef<Located<Identifier>> AccessPathTy;
/// Convenience struct to keep track of a module along with its access path.
struct ImportedModule {
struct alignas(uint64_t) ImportedModule {
/// The access path from an import: `import Foo.Bar` -> `Foo.Bar`.
ModuleDecl::AccessPathTy accessPath;
/// The actual module corresponding to the import.