Skip to content

SimplifyCFG: fix a crash caused by unreachable CFG cycles with block arguments. #34320

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
Oct 15, 2020

Conversation

eeckstein
Copy link
Contributor

When SimplifyCFG (temporarily) produces an unreachable CFG cycle, some other transformations in SimplifyCFG didn't deal with this situation correctly.

Unfortunately I couldn't create a SIL test case for this bug, so I just added a swift test case.

https://bugs.swift.org/browse/SR-13650
rdar://problem/69942431

…ck arguments.

When SimplifyCFG (temporarily) produces an unreachable CFG cycle, some other transformations in SimplifyCFG didn't deal with this situation correctly.

Unfortunately I couldn't create a SIL test case for this bug, so I just added a swift test case.

https://bugs.swift.org/browse/SR-13650
rdar://problem/69942431
@eeckstein
Copy link
Contributor Author

@swift-ci test and merge

@eeckstein eeckstein changed the title SimplifyCFG: fix a crash caused by an unreachable CFG cycles with block arguments. SimplifyCFG: fix a crash caused by unreachable CFG cycles with block arguments. Oct 15, 2020
@swift-ci swift-ci merged commit 1c7e87a into swiftlang:main Oct 15, 2020
@eeckstein eeckstein deleted the fix-simplify-cfg branch October 15, 2020 16:55
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.

2 participants