Skip to content

Conversation

@swiftix
Copy link
Contributor

@swiftix swiftix commented Sep 29, 2016

––– CCC Information –––
• Explanation: Fix for a linking error related to missing type metadata symbols.
• Scope of Issue: It can happen if the current module defines an extension of a type from a different module and defines new types inside this extension. The error happens only if the wholemodule optimization with -num-threads option is used, which is a default setting in Xcode.
• Origination: It is a long standing bug. rdar://problem/27245620
• Risk: low.
• Reviewed By: Erik Eckstein
• Testing: Verified locally and using a CI @please smoke test
• Directions for QA: No special directions. The patch includes unit tests.

Detailed description:

The existing code was not handling the linkage of global aliases in LLVM modules. This resulted in linking errors in certain cases, because the LLVM backend would remove some type metadata in scope of a dead code elimination.

Fixes rdar://27245620

…e optimization with -num-threads.

The existing code was not handling the linkage of global aliases in LLVM modules. This resulted in linking errors in certain cases, because the LLVM backend would remove some type metadata in scope of a dead code elimination.

Fixes rdar://27245620
@swiftix
Copy link
Contributor Author

swiftix commented Sep 29, 2016

@swift-ci Please test OSX

@swiftix
Copy link
Contributor Author

swiftix commented Sep 29, 2016

@swift-ci Pleas test OS X

@swiftix
Copy link
Contributor Author

swiftix commented Sep 29, 2016

@swift-ci Please test OS X

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - c99c97b
Test requested by - @swiftix

@swiftix
Copy link
Contributor Author

swiftix commented Sep 30, 2016

IDE/complete_type.swift failure seems to be totally unrelated.

@tkremenek
Copy link
Member

@swift-ci clean test

@swiftix
Copy link
Contributor Author

swiftix commented Sep 30, 2016

@tkremenek All tests are green! It can be merged now.

@tkremenek tkremenek merged commit b746d8f into swiftlang:swift-3.0-branch Sep 30, 2016
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