Skip to content

[Serialization] Evaluate the safety of opaque types #63479

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
Feb 7, 2023

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Feb 7, 2023

Some compilation paths access the opaque return type type by itself without going through its function. So access to the type must be protected, otherwise deserialization fails at getting the naming decl when it's unsafe.

rdar://105085860

@xymus
Copy link
Contributor Author

xymus commented Feb 7, 2023

@swift-ci Please smoke test

@xymus xymus requested a review from bnbarham February 7, 2023 01:07
Some compilation paths access the opaque return type type by itself
without going through its function. So access to the type must be
protected, otherwise deserialization fails at getting the naming decl
when it's unsafe.

rdar://105085860
@xymus
Copy link
Contributor Author

xymus commented Feb 7, 2023

@swift-ci Please smoke test

@xymus xymus merged commit 5786221 into swiftlang:main Feb 7, 2023
@xymus xymus deleted the opaque-safety branch February 8, 2023 00:33
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.

1 participant