mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user