-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.3] IRGen: Fix asserting local extern declarations. #33881
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
[5.3] IRGen: Fix asserting local extern declarations. #33881
Conversation
@swift-ci Please test |
@swift-ci please nominate |
Build failed |
Build failed |
Bug fix: Emit code for C++ inline function called from another inline function
…ang-decl [IRGen] Check as early as possible for Clang decls we've seen before.
Explanation: LLVM currently asserts on local extern variables in C headers passed to Swift when the definition exists outside that header. Scope: This never worked. Risk: Low. Testing: Regression test added. Reviewed-by: John McCall Original PR: swiftlang#33306 This fix also required the cherry-pick of: swiftlang#31035 and swiftlang#31272 rdar://67951491
138e3db
to
4a4796a
Compare
@swift-ci Please test |
@swift-ci Please test windows |
Build failed |
Build failed |
Explanation:
LLVM currently asserts on local extern variables in C headers passed to
Swift when the definition exists outside that header.
Scope: This never worked.
Risk: Low.
Testing: Regression test added.
Reviewed-by: John McCall
Original PR: #33306
rdar://67951491