Skip to content

Add test to show ~Copyable struct has OwnershipKind::None in SIL #72160

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 2 commits into from
Mar 8, 2024

Conversation

meg-gupta
Copy link
Contributor

No description provided.

@meg-gupta
Copy link
Contributor Author

OwnershipKind::None on a non-trivial noncopyable type can expose bugs in the optimizer like deleting destroy_value of such a type and losing its side effect among others . Adding this test to clarify this existing issue.

@meg-gupta meg-gupta enabled auto-merge March 7, 2024 23:20
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test

@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test windows platform

@meg-gupta meg-gupta merged commit 73c424e into swiftlang:main Mar 8, 2024
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.

2 participants