Skip to content

MemoryLifetimeVerifier: relax the check for trivial enums a bit #68084

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

Conversation

eeckstein
Copy link
Contributor

Trivial enum cases in a memory location don't need to be destroyed. Don't require that the store to such a memory location is statically known as a trivial enum case. Instead just require that it's below a switch_enum successor for a trivial case.

Fixes a false alarm.

rdar://114274714

Trivial enum cases in a memory location don't need to be destroyed.
Don't require that the store to such a memory location is statically known as a trivial enum case.
Instead just require that it's below a switch_enum successor for a trivial case.

Fixes a false alarm.

rdar://114274714
@eeckstein eeckstein requested a review from meg-gupta August 23, 2023 10:49
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

Copy link
Contributor

@meg-gupta meg-gupta left a comment

Choose a reason for hiding this comment

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

Thanks!

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test windows

@eeckstein eeckstein merged commit b6ed127 into swiftlang:main Aug 23, 2023
@eeckstein eeckstein deleted the fix-memory-lifetime-verifier branch August 23, 2023 17:42
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