[llvm] r303272 - Workaround for incorrect Win32 header on GCC.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed May 17 09:39:33 PDT 2017
Author: zturner
Date: Wed May 17 11:39:33 2017
New Revision: 303272
URL: http://llvm.org/viewvc/llvm-project?rev=303272&view=rev
Log:
Workaround for incorrect Win32 header on GCC.
Modified:
llvm/trunk/lib/Support/CrashRecoveryContext.cpp
Modified: llvm/trunk/lib/Support/CrashRecoveryContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CrashRecoveryContext.cpp?rev=303272&r1=303271&r2=303272&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CrashRecoveryContext.cpp (original)
+++ llvm/trunk/lib/Support/CrashRecoveryContext.cpp Wed May 17 11:39:33 2017
@@ -164,15 +164,13 @@ CrashRecoveryContext::unregisterCleanup(
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
+ // DBG_PRINTEXCEPTION_WIDE_C is not properly defined on all supported
+ // compilers and platforms, so we define it manually.
+ constexpr ULONG DbgPrintExceptionWideC = 0x4001000AL;
switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
{
case DBG_PRINTEXCEPTION_C:
- case WideDbgPrintValue:
+ case DbgPrintExceptionWideC:
case 0x406D1388: // set debugger thread name
return EXCEPTION_CONTINUE_EXECUTION;
}
More information about the llvm-commits
mailing list