[PATCH] D72564: [NFC] Fix compilation of CrashRecoveryContext.cpp on mingw

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 12 11:47:34 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGde797ccdd74f (authored by zero9178, committed by aganea).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72564/new/

https://reviews.llvm.org/D72564

Files:
  llvm/lib/Support/CrashRecoveryContext.cpp


Index: llvm/lib/Support/CrashRecoveryContext.cpp
===================================================================
--- llvm/lib/Support/CrashRecoveryContext.cpp
+++ llvm/lib/Support/CrashRecoveryContext.cpp
@@ -266,7 +266,8 @@
 
   // Handle the crash
   const_cast<CrashRecoveryContextImpl *>(CRCI)->HandleCrash(
-      (int)ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo);
+      (int)ExceptionInfo->ExceptionRecord->ExceptionCode,
+      reinterpret_cast<uintptr_t>(ExceptionInfo));
 
   // Note that we don't actually get here because HandleCrash calls
   // longjmp, which means the HandleCrash function never returns.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72564.237554.patch
Type: text/x-patch
Size: 640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200112/cb9804ef/attachment.bin>


More information about the llvm-commits mailing list