Skip to content

[4.0] Allow resolved KeyPath and KeyPathApplication exprs to re-type-check. #10880

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

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Jul 11, 2017

Explanation: The compiler would silently fail during failure diagnosis when some expressions involving key path literals failed to type-check.

Scope: Malformed code using key paths would frequently crash the compiler instead of giving meaningful error messages.

Issue: rdar://problem/32488872 | SR-5034

Risk: Low, bug fix isolated to failure recovery on key paths. Should have no effect on correct code.

Testing: Swift CI, test cases from Jira

NB: This builds on the patch from #10863.

jckarter added 3 commits July 10, 2017 15:06
…ubscript components into getCalleeDeclAndArgs.

Fixes SR-5189 | rdar://problem/32713662.
…onstructor.

A preemptive strike against memory management bugs in the future.

(cherry picked from commit 963c58c)
…ng failure diagnosis.

Fixes SR-5034 | rdar://problem/32488872.
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter
Copy link
Contributor Author

@xedin Does this look good for the 4.0 branch? To avoid conflicts I built on the patches from #10863. 1507e2a is the patch specific to this fix.

@jckarter jckarter requested a review from xedin July 11, 2017 18:13
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

3 participants