Skip to content

[String] Switch scalar-aligned bit to a reserved bit. #25948

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
Jul 3, 2019

Conversation

milseman
Copy link
Member

@milseman milseman commented Jul 2, 2019

Since scalar-alignment is set in inlinable code, switch the alignment
bit to one of the previously-reserved bits rather than a grapheme
cache bit. Setting a grapheme cache bit in inlinable would break
backward deployment, as older versions would interpret it as a cached
value.

Also adjust the name to "scalar-aligned", which is clearer, and
removed assertion (which should be a real precondition).

@milseman milseman requested a review from lorentey July 2, 2019 21:32
@milseman
Copy link
Member Author

milseman commented Jul 2, 2019

@swift-ci please test

Copy link
Contributor

@Catfish-Man Catfish-Man left a comment

Choose a reason for hiding this comment

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

Looks good to me

Since scalar-alignment is set in inlinable code, switch the alignment
bit to one of the previously-reserved bits rather than a grapheme
cache bit. Setting a grapheme cache bit in inlinable would break
backward deployment, as older versions would interpret it as a cached
value.

Also adjust the name to "scalar-aligned", which is clearer, and
removed assertion (which should be a real precondition).
@milseman
Copy link
Member Author

milseman commented Jul 2, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Jul 2, 2019

Build failed
Swift Test Linux Platform
Git Sha - 818c2ad5f2e61a246ba58e7c314ec49d3bf466a9

@swift-ci
Copy link
Contributor

swift-ci commented Jul 2, 2019

Build failed
Swift Test OS X Platform
Git Sha - 818c2ad5f2e61a246ba58e7c314ec49d3bf466a9

@milseman milseman merged commit 99ff556 into swiftlang:master Jul 3, 2019
@milseman milseman deleted the bit_switch branch July 3, 2019 02:08
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.

4 participants