Skip to content

IRGen: Handle protocol inheritance in witness_method lowering. #2920

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
Jun 7, 2016

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Jun 6, 2016

If the conformance in a witness_method instruction represented a derived protocol instead of the exact protocol of the desired method, we would crash. Handle this by drilling down to the exact conformance needed before forming a witness ref. Fixes rdar://problem/26633668.

If the conformance in a witness_method instruction represented a derived protocol instead of the exact protocol of the desired method, we would crash. Handle this by drilling down to the exact conformance needed before forming a witness ref. Fixes rdar://problem/26633668.
@jckarter
Copy link
Contributor Author

jckarter commented Jun 6, 2016

@swift-ci Please test and merge

@swift-ci swift-ci merged commit e7bf227 into swiftlang:master Jun 7, 2016
@jckarter jckarter deleted the witness-method-inheritance branch June 7, 2016 02:29
MaxDesiatov added a commit that referenced this pull request Apr 19, 2021
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