-
Notifications
You must be signed in to change notification settings - Fork 10.5k
LoadableByAddress: fix a crash related to single-element tuples containing a label and a closure. #35474
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
…ining a label and a closure. The canonical type was wrong for such tuples. https://bugs.swift.org/browse/SR-14046 rdar://73245321
@swift-ci test |
Build failed |
Build failed |
@swift-ci test |
Build failed |
Build failed |
@swift-ci test |
Build failed |
@swift-ci test macOS |
1 similar comment
@swift-ci test macOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The canonical type was wrong for such tuples.
The problem here was that re-constructing a tuple-type from its element types is not good enough, because it is not preserving the tuple labels (and this makes a difference in type canonicalization). Instead, explicitly provide the resulting tuple type to SILBuilder.
https://bugs.swift.org/browse/SR-14046
rdar://73245321