OSDN Git Service

Firstly, having a BranchInst isn't exclusive with having an unwind_to.
authorNick Lewycky <nicholas@mxc.ca>
Sun, 9 Mar 2008 07:50:37 +0000 (07:50 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 9 Mar 2008 07:50:37 +0000 (07:50 +0000)
commit3f4cc3101e4c6cccd2ecc2604205ff819fcfa40f
tree2ecde0446598f04f84b6789224e92b6f89ce9afb
parent8dc023f684216ecfae816cff370a40de8437300e
Firstly, having a BranchInst isn't exclusive with having an unwind_to.
Secondly, we have to check whether the branch is actually pointing to the block
with the unwind in it. We could have gotten here because of the unwind_to alone.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48099 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/unwindto.ll