[asan] Set the unhandled exception filter slightly later during startup
authorReid Kleckner <rnk@google.com>
Mon, 21 Mar 2016 23:51:21 +0000 (23:51 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 21 Mar 2016 23:51:21 +0000 (23:51 +0000)
commit81f7729c3dd975c266d9ee0c8b4dce6a5ca0edc8
tree9f26e16e91ae44e13389af4bb8701dca2cb910cc
parented051774bae7464609db61427e395794b303e178
[asan] Set the unhandled exception filter slightly later during startup

VS 2015 moved the priority of their exception filter initializer from
XIY to XCAA. We now set ours to XCAB, which makes it run after both CRT
versions but before user constructors, as it should.

Fixes null_deref.cc and a variety of related tests with VS 2015. Only 4
failures remain.

llvm-svn: 264006
compiler-rt/lib/asan/asan_win.cc