Skip to content

swift-reflection-test: silence tautological warning #25208

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

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Jun 2, 2019

PE/COFF does not permit weak linking semantics. This means that the
expression &symbol == NULL is tautologically false. In order to
support this semantic, the symbol needs to be dynamically looked up at
runtime. Since the ObjC runtime is not in use on Windows currently,
just ignore this for the time being. Silences a warning from clang
about the tautological comparison.

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

Resolves SR-NNNN.

PE/COFF does not permit weak linking semantics.  This means that the
expression `&symbol == NULL` is tautologically false.  In order to
support this semantic, the symbol needs to be dynamically looked up at
runtime.  Since the ObjC runtime is not in use on Windows currently,
just ignore this for the time being.  Silences a warning from clang
about the tautological comparison.
@compnerd
Copy link
Member Author

compnerd commented Jun 2, 2019

CC: @mikeash

@compnerd
Copy link
Member Author

compnerd commented Jun 2, 2019

@swift-ci please test

@compnerd compnerd merged commit 651045f into swiftlang:master Jun 3, 2019
@compnerd compnerd deleted the tautologically-incomplete branch June 3, 2019 15:43
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