[SEH] Don't assert if the parent function lacks a personality
authorReid Kleckner <reid@kleckner.net>
Wed, 1 Jul 2015 16:45:47 +0000 (16:45 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 1 Jul 2015 16:45:47 +0000 (16:45 +0000)
commit1804878f0cb2aa372f06c7fd91d9e081a450e6ce
treef8a590457b89136c7105997f0a9e4b485546afb3
parenta2b83fd687c88de6112df83c8a26d501d59108ce
[SEH] Don't assert if the parent function lacks a personality

The EH code might have been deleted as unreachable and the personality
pruned while the filter is still present.  Currently I'm hitting this at
-O0 due to the clang bug PR24009.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241170 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/seh-filter-no-personality.ll [new file with mode: 0644]