lib/Support/Windows/Signals.inc: "Showstopper" dialogs may be suppressed with SetErrorMode() on Windows 7.

llvm-svn: 123685
This commit is contained in:
NAKAMURA Takumi 2011-01-17 22:41:15 +00:00
parent 459e079912
commit bb4ea1fef9
1 changed files with 3 additions and 0 deletions

View File

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