Don't remove a landing pad if the invoke requires a table entry.
authorBill Wendling <isanbard@gmail.com>
Mon, 11 Mar 2013 20:53:00 +0000 (20:53 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 11 Mar 2013 20:53:00 +0000 (20:53 +0000)
commit9534d8885f9b35975987ff04fc02befcbc98de7f
tree43cc79a966f7ef801c81e54cdb119d28fbebb7ca
parent4b3ecba537493a9b027ba242a9fd1eac50850aeb
Don't remove a landing pad if the invoke requires a table entry.

An invoke may require a table entry. For instance, when the function it calls
is expected to throw.
<rdar://problem/13360379>

llvm-svn: 176827
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/trivial-throw.ll [new file with mode: 0644]