aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CrashRecoveryContext.cpp
diff options
context:
space:
mode:
authorMarkus Böck <markus.boeck02@gmail.com>2020-01-12 14:24:35 -0500
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2020-01-12 14:43:16 -0500
commitde797ccdd74f46d5f637ccf66c78da9905a46f42 (patch)
tree589159ddcfe9081329d470d79a7e06a9adc2c1df /llvm/lib/Support/CrashRecoveryContext.cpp
parentebd26cc8c434f40fe8079ee823e7657b5138769f (diff)
downloadllvm-de797ccdd74f46d5f637ccf66c78da9905a46f42.zip
llvm-de797ccdd74f46d5f637ccf66c78da9905a46f42.tar.gz
llvm-de797ccdd74f46d5f637ccf66c78da9905a46f42.tar.bz2
[NFC] Fix compilation of CrashRecoveryContext.cpp on mingw
Patch by Markus Böck. Differential Revision: https://reviews.llvm.org/D72564
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
-rw-r--r--llvm/lib/Support/CrashRecoveryContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index 548cce0..b9031f5 100644
--- a/llvm/lib/Support/CrashRecoveryContext.cpp
+++ b/llvm/lib/Support/CrashRecoveryContext.cpp
@@ -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.