mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Work around PR44697 in CrashRecoveryContext
This commit is contained in:
parent
332fa622b0
commit
88aea68633
@ -195,8 +195,15 @@ static int ExceptionFilter(bool DumpStackAndCleanup,
|
||||
return EXCEPTION_EXECUTE_HANDLER;
|
||||
}
|
||||
|
||||
#if defined(__clang__) && defined(_M_IX86)
|
||||
// Work around PR44697.
|
||||
__attribute__((optnone))
|
||||
static bool InvokeFunctionCall(function_ref<void()> Fn,
|
||||
bool DumpStackAndCleanup, int &RetCode) {
|
||||
#else
|
||||
static bool InvokeFunctionCall(function_ref<void()> Fn,
|
||||
bool DumpStackAndCleanup, int &RetCode) {
|
||||
#endif
|
||||
__try {
|
||||
Fn();
|
||||
} __except (ExceptionFilter(DumpStackAndCleanup, GetExceptionInformation())) {
|
||||
|
Loading…
Reference in New Issue
Block a user