Skip to content

[Sema] Crash fix for key path for an optional chain to optional lvalue. #12452

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
Oct 16, 2017

Conversation

gregomni
Copy link
Contributor

@gregomni gregomni commented Oct 15, 2017

Incorrect condition here resulted in incorrectly trying to optional-wrap for an optional chain to optional lvalue.

Resolves SR-6106 | rdar://problem/34911379.

…rap for an optional chain to optional lvalue.
@gregomni
Copy link
Contributor Author

@swift-ci Please smoke test

@gregomni gregomni merged commit bc94cba into swiftlang:master Oct 16, 2017
@jckarter
Copy link
Contributor

Thanks! This shouldn't really be possible, though, since the optional chain is supposed to force the rest of the following keypath to be read-only.

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