Skip to content

[3.1] IRGen: Don't try to emit non-global variables of imported inline c functions #6913

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

Conversation

aschwaighofer
Copy link
Contributor

The previous check would fail because isExternallyVisible() is false for local
static variables with internal linkage.

rdar://29937443

• Explanation: We would assert during IRGen of imported inline C functions which had a static local variable with the internal linkage attribute set because we would try to generate code for this local variable.
• Scope of Issue: Occurs in swift code that imports inline c functions which static local variables that are marked internal_linkage.
• Origination: Unknown (the code with the wrong check has been there since 2014)
• Risk: Low.
• Reviewed By: John McCall
• Testing: Swift CI

…nctions

The previous check would fail because isExternallyVisible() is false for local
static variables with internal linkage.

rdar://29937443
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@bob-wilson bob-wilson merged commit 635581a into swiftlang:swift-3.1-branch Jan 20, 2017
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