[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)
commit48945cdc159e47349b28157375960a11809c117d
treec0001b43e838fe1311a762f68c1d883e8c5e0c18
parente6ccd7b66a55363bbc57a7efcff1c514081a6269
[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.

llvm-svn: 255073
llvm/lib/Transforms/IPO/PruneEH.cpp
llvm/test/Transforms/PruneEH/operand-bundles.ll [new file with mode: 0644]