Skip to content

ABCOpts: Bail out if we don't know how-to hoist an array operation #4885

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

Conversation

aschwaighofer
Copy link
Contributor

Description: Array bounds checks assumed to see certain forms of SIL and only asserted them to be expected. This causes crashes when this assumption is broken.
Instead of asserting the forms it can handle check and bail if the expected forms are not encountered.

Scope: This issue was hit on one project so far.

Risk: Low, we bail out if the IR is not of the expected form.

Tested: SIL regression test added.

Radar: rdar://problem/28204253

Instead of assuming we see only certain forms IR.

rdar://28204253
(cherry picked from commit 3c755e3)
@aschwaighofer
Copy link
Contributor Author

@eeckstein Can you review?

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test.

@eeckstein
Copy link
Contributor

LGTM

@aschwaighofer aschwaighofer added this to the Swift 3.0 milestone Sep 20, 2016
@tkremenek tkremenek merged commit 4068d2c into swiftlang:swift-3.0-branch Sep 20, 2016
@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 1aebe29
Test requested by - @aschwaighofer

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.

4 participants