diff options
author | Zachary Turner <zturner@google.com> | 2017-05-16 22:59:34 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-05-16 22:59:34 +0000 |
commit | c9c39291c789a2f2f4c11ad899af9a4e3315a269 (patch) | |
tree | b54a16465b07a354dfd7da87a7debeda7b243208 /llvm/lib/Support/CrashRecoveryContext.cpp | |
parent | 13e87f43d9ed41554c16d086f077cfb8e02cced4 (diff) | |
download | bcm5719-llvm-c9c39291c789a2f2f4c11ad899af9a4e3315a269.tar.gz bcm5719-llvm-c9c39291c789a2f2f4c11ad899af9a4e3315a269.zip |
Fix for compilers with older CRT header libraries.
llvm-svn: 303220
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
-rw-r--r-- | llvm/lib/Support/CrashRecoveryContext.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp index a8e34e590fb..f49630411e5 100644 --- a/llvm/lib/Support/CrashRecoveryContext.cpp +++ b/llvm/lib/Support/CrashRecoveryContext.cpp @@ -164,10 +164,15 @@ CrashRecoveryContext::unregisterCleanup(CrashRecoveryContextCleanup *cleanup) { static LONG CALLBACK ExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo) { +#ifdef DBG_PRINTEXCEPTION_WIDE_C + constexpr ULONG WideDbgPrintValue = DBG_PRINTEXCEPTION_WIDE_C; +#else + constexpr ULONG WideDbgPrintValue = 0x4001000AL; +#endif switch (ExceptionInfo->ExceptionRecord->ExceptionCode) { case DBG_PRINTEXCEPTION_C: - case DBG_PRINTEXCEPTION_WIDE_C: + case WideDbgPrintValue: case 0x406D1388: // set debugger thread name return EXCEPTION_CONTINUE_EXECUTION; } |