Skip to content

Conversation

@RemiBardon
Copy link

I just stumbled upon a useless if statement, we can remove it.

@Azoy Azoy requested a review from compnerd July 13, 2023 20:53
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand how this is a "useless" if. The host compiler is not guaranteed to be clang, it may be MSVC/XLC/SunProCC/GCC/etc. Is there a previous check that guarantees that is not the case?

@RemiBardon
Copy link
Author

We are in a elseif branch of if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang"), so if(NOT "${CMAKE_C_COMPILER_ID}" MATCHES "Clang") must be false, unless I’m mistaken or misread.

@RemiBardon RemiBardon requested a review from compnerd July 24, 2023 07:12
@compnerd
Copy link
Member

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 1835aaf into swiftlang:main Jul 24, 2023
@RemiBardon RemiBardon deleted the fix-2023-07-13-a branch July 24, 2023 20: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.

3 participants