Skip to content

AST: inline the definition for AnyValue::Holder<Type>::equals #24272

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 26, 2019

Conversation

compnerd
Copy link
Member

Unfortunately, MSVC will not preserve the template specialization in
swiftAST. However, the function is pretty tiny, so simply inline it
into the header. This allows the template specialization to be
instantiated and inlined at the use site. The overall size impact
should be negligible and this repairs the Windows build.

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

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

CC: @DougGregor

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - dbeaf53ea9d959f5be17deb0da7a80fcacc8e15a

Unfortunately, MSVC will not preserve the template specialization in
swiftAST.  However, the function is pretty tiny, so simply inline it
into the header.  This allows the template specialization to be
instantiated and inlined at the use site.  The overall size impact
should be negligible and this repairs the Windows build.
@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - dbeaf53ea9d959f5be17deb0da7a80fcacc8e15a

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - dbeaf53ea9d959f5be17deb0da7a80fcacc8e15a

@compnerd
Copy link
Member Author

@swift-ci please test macOS platform

@compnerd compnerd merged commit 39335f4 into swiftlang:master Apr 26, 2019
@compnerd compnerd deleted the not-equal branch April 26, 2019 00:52
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