Skip to content
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

Sema: Fix assertion when performing conformance check of protocol in another file #8107

Merged

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Mar 15, 2017

GenericSignature::getConformanceAccessPath() would call
computeRequirementSignature() if the protocol did not already
have one.

If this happened before the protocol was validated with
validateDecl(), then we would hit an assertion because
validateDecl() calls computeRequirementSignature()
unconditionally.

Change validateDecl() to only call computeRequirementSignature()
if the protocol does not already have a requirement signature.

Progress on rdar://problem/30817732.

…another file

GenericSignature::getConformanceAccessPath() would call
computeRequirementSignature() if the protocol did not already
have one.

If this happened before the protocol was validated with
validateDecl(), then we would hit an assertion because
validateDecl() calls computeRequirementSignature()
unconditionally.

Change validateDecl() to only call computeRequirementSignature()
if the protocol does not already have a requirement signature.

Progress on <rdar://problem/30817732>.
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit 9da79dd into swiftlang:master Mar 15, 2017
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.

1 participant