OSDN Git Service

Make sure we aren't deleting the landingpad instruction.
authorBill Wendling <isanbard@gmail.com>
Wed, 31 Aug 2011 20:55:20 +0000 (20:55 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 31 Aug 2011 20:55:20 +0000 (20:55 +0000)
commit4f8aaa0928caf36d7982534748c8390c5186d534
tree259a57fb8f02c4ec1e4b8bea992f3c82785674e8
parent721cb1fde07423fd1905338d443172a8028ad634
Make sure we aren't deleting the landingpad instruction.

The landingpad instruction is required in the landing pad block. Because we're
not deleting terminating instructions, the invoke may still jump to here (see
Transforms/SCCP/2004-11-16-DeadInvoke.ll). Remove all uses of the landingpad
instruction, but keep it around until code-gen can remove the basic block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138890 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp