Skip to content

Fix UnsafeRawPointer.load to use Builtin.loadRaw. #4293

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
Aug 14, 2016
Merged

Fix UnsafeRawPointer.load to use Builtin.loadRaw. #4293

merged 1 commit into from
Aug 14, 2016

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Aug 14, 2016

This API should have been converted to use the
new Builtin before it was introduced here:
commit a41484e
Author: Andrew Trick [email protected]
Date: Fri Jul 22 13:32:08 2016
Add UnsafeRawPointer type and API. (#3677)

But it looks like that was dropped during during some local merge. It's not
likely to be a problem until developers start adopting the new API and the
optimizer starts using TBAA aggressively. The other "raw" API's are binding
memory or using memmove, so those are safe.

rdar:23406272.

This API should have been converted to use the
new Builtin before it was introduced here:
commit a41484e
Author: Andrew Trick <[email protected]>
Date:   Fri Jul 22 13:32:08 2016
    Add UnsafeRawPointer type and API. (#3677)

But it looks like that was dropped during during some local merge. It's not
likely to be a problem until developers start adopting the new API and the
optimizer starts using TBAA aggressively. The other "raw" API's are binding
memory or using memmove, so those are safe.

rdar:23406272.
@atrick
Copy link
Contributor Author

atrick commented Aug 14, 2016

@swift-ci Please test OS X.

@atrick
Copy link
Contributor Author

atrick commented Aug 14, 2016

@eeckstein please review this for inclusion in the 3.0 branch. Thanks.

@tkremenek
Copy link
Member

@swift-ci test linux

@eeckstein
Copy link
Contributor

LGTM

@tkremenek tkremenek merged commit 12f3d46 into swiftlang:swift-3.0-branch Aug 14, 2016
kateinoigakukun pushed a commit that referenced this pull request Aug 31, 2022
[pull] swiftwasm from main
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