Skip to content

[silgen] Hide ManagedValue::forUnmanaged and rewrite all uses to use more specific APIs #68024

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

Conversation

gottesmm
Copy link
Contributor

Just further work so I can force ManagedValues to specify the scope that their lifetime is part of.

This is an old API that should have been renamed a long time ago. It just kept
its early name due to inertia.
…use other more specific APIs.

I have been doing this over the past couple of days in preparation for changing
ManagedValue to specify the type of scope its cleanup is connected to.
@gottesmm gottesmm requested a review from ktoso as a code owner August 19, 2023 21:12
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm
Copy link
Contributor Author

@swift-ci test source compatibility

@gottesmm
Copy link
Contributor Author

I am not going to wait for the release compatibility suite since I was just checking for assertions after SILGen. So debug is fine.

@gottesmm gottesmm merged commit 36d333c into swiftlang:main Aug 20, 2023
@gottesmm gottesmm deleted the pr-41b9d05e5b76061c0db11b5507cf80af25fc6dbe branch August 20, 2023 04:01
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