Skip to content

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

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Jan 18, 2021

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

…ining a label and a closure.

The canonical type was wrong for such tuples.

https://bugs.swift.org/browse/SR-14046
rdar://73245321
@eeckstein
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 132b09b

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 132b09b

@eeckstein
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 132b09b

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 132b09b

@eeckstein
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 132b09b

@eeckstein
Copy link
Contributor Author

@swift-ci test macOS

1 similar comment
@eeckstein
Copy link
Contributor Author

@swift-ci test macOS

Copy link
Contributor

@aschwaighofer aschwaighofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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