Skip to content

Conversation

eeckstein
Copy link
Contributor

  • Handle stores of tuples with trivial enums: the MemoryLifetimeVerifier issued a false alarm if a tuple with a trivial enum-case (e.g. an Optional nil) is stored to a memory location.

  • Treat enum cases with empty payloads (e.g. an empty tuple) like cases with no payloads.

rdar://79781939

This PR is a cherry pick of #38128 and #39200.

@eeckstein eeckstein requested a review from a team as a code owner October 1, 2021 06:29
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein requested a review from meg-gupta October 1, 2021 06:30
@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2021

Build failed
Swift Test Linux Platform
Git Sha - 25768870a10e65e6f89f91771fc563943e1ae15b

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2021

Build failed
Swift Test OS X Platform
Git Sha - 25768870a10e65e6f89f91771fc563943e1ae15b

@eeckstein eeckstein changed the title Fix two false verification errors in the MemoryLifetimeVerifier [5.5] Fix two false verification errors in the MemoryLifetimeVerifier Oct 1, 2021
@eeckstein eeckstein added the r5.5 label Oct 1, 2021
The MemoryLifetimeVerifier issued a false alarm if a tuple with a trivial enum-case (e.g. an Optional nil) is stored to a memory location.

rdar://79781939
@eeckstein eeckstein force-pushed the fix-memory-lifetime-verifier-5.5 branch from 2576887 to 0f2a7b7 Compare October 1, 2021 13:01
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit bc78fcd into swiftlang:release/5.5 Oct 5, 2021
@eeckstein eeckstein deleted the fix-memory-lifetime-verifier-5.5 branch October 5, 2021 16:27
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants