Skip to content

SILOptimizer: rename cdecl to ctor (NFC) #27517

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

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Oct 3, 2019

cdecl is a keyword in the non-conforming C++ dialect used on Windows
which expands to __cdecl. Simply rename the variable to avoid the
replacement. Although it is possible to #undef cdecl, renaming makes
it less confusing for non-Windows developers.

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

Resolves SR-NNNN.

`cdecl` is a keyword in the non-conforming C++ dialect used on Windows
which expands to `__cdecl`.  Simply rename the variable to avoid the
replacement.  Although it is possible to `#undef cdecl`, renaming makes
it less confusing for non-Windows developers.
@compnerd
Copy link
Member Author

compnerd commented Oct 3, 2019

CC: @ravikandhadai @brentdax

@compnerd
Copy link
Member Author

compnerd commented Oct 3, 2019

@swift-ci please test and merge

@swift-ci swift-ci merged commit 4b646bf into swiftlang:master Oct 3, 2019
@compnerd compnerd deleted the decltype branch October 3, 2019 18:34
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