Skip to content

[Runtime] Replace std::max_align_t with MaximumAlignment from MetadataValues.h. #40244

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 1 commit into from
Nov 18, 2021

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Nov 18, 2021

On Windows, std::max_align_t is only 8-byte aligned, but Swift assumes 16-byte alignment. MaximumAlignment is our notion of the maximum alignment of a type, so use that instead.

…aValues.h.

On Windows, std::max_align_t is only 8-byte aligned, but Swift assumes 16-byte alignment. MaximumAlignment is our notion of the maximum alignment of a type, so use that instead.
@mikeash mikeash requested review from compnerd and rjmccall November 18, 2021 19:02
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@mikeash
Copy link
Contributor Author

mikeash commented Nov 18, 2021

@swift-ci please smoke test

@mikeash mikeash merged commit cd8da12 into swiftlang:main Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants