Skip to content

Cast Optimizer: bail out when we can't do the cast #13401

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
Dec 13, 2017

Conversation

shajrawi
Copy link

rdar://problem/35870803

• Explanation: optimizeBridgedSwiftToObjCCast - should never reach an unreachable code path: if the Destination does not have the same type, is not a bridgeable CF type and isn't a superclass/subclass of the source operand then bail before going through with the code generation.
• Scope of Issue: This is a compiler bug in the mandatory optimizations pass.
• Origination: User reported issue / code
• Risk: Low
• Reviewed By: Erik Eckstein
• Testing: Swift CI, New test case in Swift + User test case.

Cast Optimizer: bail out when we can't do the cast
@shajrawi shajrawi requested a review from eeckstein December 13, 2017 00:18
@shajrawi
Copy link
Author

@swift-ci Please test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

LGTM!

@najacque najacque merged commit 1cb2f33 into swift-4.1-branch Dec 13, 2017
@shajrawi shajrawi deleted the cast_fix_cherrypick branch December 13, 2017 01: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