Skip to content

Commit 22de021

Browse files
authored
Merge pull request #3899 from iachievedit/master
Align certain records on 8-bit boundary for ARM builds
2 parents f170630 + d179717 commit 22de021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/AST/Decl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3731,7 +3731,7 @@ enum class AccessStrategy : unsigned char {
37313731
/// Information about a behavior instantiated by a storage declaration.
37323732
///
37333733
/// TODO: Accessors, composed behaviors
3734-
struct BehaviorRecord {
3734+
struct alignas(1 << 3) BehaviorRecord {
37353735
// The behavior name.
37363736
TypeRepr *ProtocolName;
37373737
// The parameter expression, if any.
@@ -3838,7 +3838,7 @@ class AbstractStorageDecl : public ValueDecl {
38383838
struct GetSetRecord;
38393839

38403840
/// This is stored immediately before the GetSetRecord.
3841-
struct AddressorRecord {
3841+
struct alignas(1 << 3) AddressorRecord {
38423842
FuncDecl *Address = nullptr; // User-defined address accessor
38433843
FuncDecl *MutableAddress = nullptr; // User-defined mutableAddress accessor
38443844

@@ -3850,7 +3850,7 @@ class AbstractStorageDecl : public ValueDecl {
38503850
void configureAddressorRecord(AddressorRecord *record,
38513851
FuncDecl *addressor, FuncDecl *mutableAddressor);
38523852

3853-
struct GetSetRecord {
3853+
struct alignas(1 << 3) GetSetRecord {
38543854
SourceRange Braces;
38553855
FuncDecl *Get = nullptr; // User-defined getter
38563856
FuncDecl *Set = nullptr; // User-defined setter

0 commit comments

Comments
 (0)