Skip to content

Align certain records on 8-bit boundary for ARM builds #3899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/swift/AST/Decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3731,7 +3731,7 @@ enum class AccessStrategy : unsigned char {
/// Information about a behavior instantiated by a storage declaration.
///
/// TODO: Accessors, composed behaviors
struct BehaviorRecord {
struct alignas(1 << 3) BehaviorRecord {
// The behavior name.
TypeRepr *ProtocolName;
// The parameter expression, if any.
Expand Down Expand Up @@ -3838,7 +3838,7 @@ class AbstractStorageDecl : public ValueDecl {
struct GetSetRecord;

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

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

struct GetSetRecord {
struct alignas(1 << 3) GetSetRecord {
SourceRange Braces;
FuncDecl *Get = nullptr; // User-defined getter
FuncDecl *Set = nullptr; // User-defined setter
Expand Down