Skip to content

Commit de797cc

Browse files
zero9178aganea
authored andcommitted
[NFC] Fix compilation of CrashRecoveryContext.cpp on mingw
Patch by Markus Böck. Differential Revision: https://reviews.llvm.org/D72564
1 parent ebd26cc commit de797cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Support/CrashRecoveryContext.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ static LONG CALLBACK ExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo)
266266

267267
// Handle the crash
268268
const_cast<CrashRecoveryContextImpl *>(CRCI)->HandleCrash(
269-
(int)ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo);
269+
(int)ExceptionInfo->ExceptionRecord->ExceptionCode,
270+
reinterpret_cast<uintptr_t>(ExceptionInfo));
270271

271272
// Note that we don't actually get here because HandleCrash calls
272273
// longjmp, which means the HandleCrash function never returns.

0 commit comments

Comments
 (0)