Skip to content

MemAccessUtils: handle the case of enum with no operand in findOwnershipReferenceAggregate #42107

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
Mar 31, 2022

Conversation

eeckstein
Copy link
Contributor

This fixes a crash when trying to compute the immutable scope of an address which comes from an Optional.none.

rdar://90119694

…rshipReferenceAggregate

This fixes a crash when trying to compute the immutable scope of an address which comes from an `Optional.none`.

rdar://90119694
@eeckstein eeckstein requested a review from atrick March 31, 2022 07:54
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein
Copy link
Contributor Author

@swift-ci benchmark

@eeckstein eeckstein merged commit c3adbfb into swiftlang:main Mar 31, 2022
@eeckstein eeckstein deleted the fix-mem-behvior branch March 31, 2022 09:44
@atrick
Copy link
Contributor

atrick commented Apr 6, 2022

@eeckstein thank you. I've hit this myself because I remember being surprised that FirstArgOwnershipForwarding didn't have an arg. Not sure why I didn't get in the fix.

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