[OperandBundles] Have PruneEH work correct with operand bundles.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 8 Dec 2015 23:16:52 +0000 (23:16 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 8 Dec 2015 23:16:52 +0000 (23:16 +0000)
commit9c609eaad830ef4d94c43ca50e41b766dddcd8d7
treedebd2e4f2180a2a7956afc9c30750aac0d1386db
parent46994bcf9c7e4f7f51567b15b5b2161b106dbeca
[OperandBundles] Have PruneEH work correct with operand bundles.

For an invoke with operand bundles, the [op_begin(), op_end()-3] range
can contain things other than invoke arguments.  This change teaches
PruneEH to use arg_begin() and arg_end() explicitly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255073 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PruneEH.cpp
test/Transforms/PruneEH/operand-bundles.ll [new file with mode: 0644]