Skip to content

Sema: move is_convertible outside of class decl #23872

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
Apr 9, 2019

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Apr 8, 2019

Ensure the class is fully defined before performing the is_convertible
check which may trigger a compiler builtin. Before the class is
complete, the compiler can not technically perform the check on it.
This fixes the build with cl.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

Ensure the class is fully defined before performing the `is_convertible`
check which may trigger a compiler builtin.  Before the class is
complete, the compiler can not technically perform the check on it.
This fixes the build with `cl`.
@compnerd
Copy link
Member Author

compnerd commented Apr 8, 2019

This should fix the issue with #23722 on Windows. CC: @jrose-apple

@compnerd
Copy link
Member Author

compnerd commented Apr 8, 2019

@swift-ci please smoke test

@compnerd compnerd merged commit b822353 into swiftlang:master Apr 9, 2019
@compnerd compnerd deleted the converting-over branch April 9, 2019 02:44
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