diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-01-17 22:41:15 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-01-17 22:41:15 +0000 |
commit | ac25e44d8905e88f91f998ce27a82cea641f5ff9 (patch) | |
tree | 41d4326bd8a18e3c70599ac8bce0657a8ade26c7 /lib/Support | |
parent | 390b9f00eb87e850a619b34ee36bc7b6860a7165 (diff) |
lib/Support/Windows/Signals.inc: "Showstopper" dialogs may be suppressed with SetErrorMode() on Windows 7.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Windows/Signals.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index c0e3eca3d3..14f3f21f02 100644 --- a/lib/Support/Windows/Signals.inc +++ b/lib/Support/Windows/Signals.inc @@ -112,6 +112,9 @@ static void RegisterHandler() { #ifdef _MSC_VER _CrtSetReportHook(CRTReportHook); #endif + SetErrorMode(SEM_FAILCRITICALERRORS | + SEM_NOGPFAULTERRORBOX | + SEM_NOOPENFILEERRORBOX); ExitOnUnhandledExceptions = true; } |