[GlobalMerge] Handle non-landingpad EH pads
authorReid Kleckner <rnk@google.com>
Wed, 19 Oct 2016 19:56:22 +0000 (19:56 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 19 Oct 2016 19:56:22 +0000 (19:56 +0000)
commitf8d1d12fef56d99542ea1766812b2cfe45583c0c
tree92b29ddfc35199b5a2f9fb8b200c566bf7371a1a
parent5c6ef754851b891ecfc685e9f1394d98569b5c8b
[GlobalMerge] Handle non-landingpad EH pads

This code crashed on funclet-style EH instructions such as catchpad,
catchswitch, and cleanuppad. Just treat all EH pad instructions
equivalently and avoid merging the globals they reference through any
use.

llvm-svn: 284633
llvm/lib/CodeGen/GlobalMerge.cpp
llvm/test/CodeGen/ARM/Windows/wineh-basic.ll [new file with mode: 0644]