OSDN Git Service

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)
commitd5bb20805e03cff03bfa3f85f189cbc8fb4a769a
treea412170d84834707d6da0e134293ca77733dc06c
parentfd49dac48fee6da580157515dec55ed2f2d8f2b3
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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/trivial-throw.ll [new file with mode: 0644]