Skip to content

[SIL Optimizer] Determine feasibility of dynamic casts between tuple types #4901

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

DougGregor
Copy link
Member

The SIL optimizer logic that determined feasability of dynamic casts
completely ignored tuple types, therefore assuming that they would
always fail. Check for structural identity, ignoring adding/removing
labels.

Resolves rdar://problem/28121915.

…types.

The SIL optimizer logic that determined feasability of dynamic casts
completely ignored tuple types, therefore assuming that they would
always fail. Check for structural identity, ignoring adding/removing
labels. Fixes rdar://problem/28121915.

(cherry picked from commit 8da7d7c)
@DougGregor DougGregor added this to the Swift 3.0 milestone Sep 21, 2016
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swiftix please review

@swiftix
Copy link
Contributor

swiftix commented Sep 21, 2016

@DougGregor LGTM! Thanks for fixing this!

@tkremenek tkremenek merged commit 0ca72a4 into swiftlang:swift-3.0-branch Sep 21, 2016
@DougGregor DougGregor deleted the opt-tuple-cast-feasibility-3-0 branch September 21, 2016 23:56
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