Skip to content

[stdlib] AutoreleasingUnsafeMutablePointer: Switch subscripts to _read accessors #20967

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
Dec 6, 2018

Conversation

lorentey
Copy link
Member

@lorentey lorentey commented Dec 3, 2018

One more PR for the accessor pile.

// We can do a strong load normally.
return (UnsafePointer<Pointee>(self) + i).pointee
yield ((UnsafePointer<Pointee>(self) + i).pointee)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the extra parentheses?

Copy link
Member Author

Choose a reason for hiding this comment

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

There is a parser issue -- rdar://problem/46419675

@lorentey
Copy link
Member Author

lorentey commented Dec 3, 2018

@swift-ci please benchmark

@lorentey
Copy link
Member Author

lorentey commented Dec 3, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Dec 3, 2018

Build comment file:

No performance and code size changes


@lorentey lorentey merged commit 5499263 into swiftlang:master Dec 6, 2018
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.

3 participants