Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Backport "[SimplifyCFG] Correctly test for unconditional branches in GetCaseResults" #54

Merged

Conversation

arielb1
Copy link

@arielb1 arielb1 commented Oct 8, 2016

…ults

GetCaseResults assumed that a terminator with one successor was an
unconditional branch.  This is not necessarily the case, it could be a
cleanupret.

Strengthen the check by querying whether or not the terminator is
exceptional.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283517 91177308-0d34-0410-b5e6-96231b3b80d8
@alexcrichton alexcrichton merged commit ac1c942 into rust-lang:rust-llvm-2016-07-09 Oct 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants