Skip to content

IRGen: address TODO for COMDATing #21158

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
Dec 9, 2018
Merged

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Dec 9, 2018

Enable COMDATing in createFunction. This is particularly important
for the emission of the GetEnumTagSinglePayload. The function emission
is marked as linkonce ODR but does not get COMDAT'ed currently, breaking
emission on PE/COFF targets like Windows.

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

Resolves SR-NNNN.

Enable COMDATing in `createFunction`.  This is particularly important
for the emission of the GetEnumTagSinglePayload.  The function emission
is marked as linkonce ODR but does not get COMDAT'ed currently, breaking
emission on PE/COFF targets like Windows.
@compnerd
Copy link
Member Author

compnerd commented Dec 9, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Dec 9, 2018

Build failed
Swift Test Linux Platform
Git Sha - f067cb7

@compnerd
Copy link
Member Author

compnerd commented Dec 9, 2018

@swift-ci please test Linux platform

@compnerd compnerd merged commit 71c11b7 into swiftlang:master Dec 9, 2018
@compnerd compnerd deleted the windows-enum branch December 9, 2018 23:36
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