Skip to content

Commit 9d77017

Browse files
authored
Merge pull request #33831 from compnerd/alignment
AST: align `ImportedModule` to 64-bits
2 parents c3f801b + 7128611 commit 9d77017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class ModuleDecl : public DeclContext, public TypeDecl {
204204
public:
205205
typedef ArrayRef<Located<Identifier>> AccessPathTy;
206206
/// Convenience struct to keep track of a module along with its access path.
207-
struct ImportedModule {
207+
struct alignas(uint64_t) ImportedModule {
208208
/// The access path from an import: `import Foo.Bar` -> `Foo.Bar`.
209209
ModuleDecl::AccessPathTy accessPath;
210210
/// The actual module corresponding to the import.

0 commit comments

Comments
 (0)