[NFC] Fix compilation of CrashRecoveryContext.cpp on mingw

Patch by Markus Böck.

Differential Revision: https://reviews.llvm.org/D72564
This commit is contained in:
Markus Böck 2020-01-12 14:24:35 -05:00 committed by Alexandre Ganea
parent 869c74a8ef
commit 0dd9fb199a

View File

@ -266,7 +266,8 @@ static LONG CALLBACK ExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo)
// 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.