OSDN Git Service

lib/Support/Windows/Signals.inc: "Showstopper" dialogs may be suppressed with SetErro...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 17 Jan 2011 22:41:15 +0000 (22:41 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 17 Jan 2011 22:41:15 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/Signals.inc

index c0e3eca..14f3f21 100644 (file)
@@ -112,6 +112,9 @@ static void RegisterHandler() {
 #ifdef _MSC_VER
     _CrtSetReportHook(CRTReportHook);
 #endif
+    SetErrorMode(SEM_FAILCRITICALERRORS |
+                 SEM_NOGPFAULTERRORBOX |
+                 SEM_NOOPENFILEERRORBOX);
     ExitOnUnhandledExceptions = true;
   }