[Support] Disable assertion dialogs from the MSVC debug CRT
authorReid Kleckner <reid@kleckner.net>
Fri, 5 Apr 2013 16:18:03 +0000 (16:18 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 5 Apr 2013 16:18:03 +0000 (16:18 +0000)
commit9463c0f3da8e325fea96e36540da18cadaa3f303
treefa42a0d7e51019ec5d894830b83017db18c76830
parent2bce4cc87a4021247636cc9a07e94cf467b995be
[Support] Disable assertion dialogs from the MSVC debug CRT

Summary:
Sets a report hook that emulates pressing "retry" in the "abort, retry,
ignore" dialog box that _CrtDbgReport normally raises.  There are many
other ways to disable assertion reports, but this was the only way I
could find that still calls our exception handler.

Reviewers: Bigcheese

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D625

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178880 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Signals.inc