Skip to content

Commit 31e0769

Browse files
committed
Work around PR44697 in CrashRecoveryContext
1 parent 24ab761 commit 31e0769

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/lib/Support/CrashRecoveryContext.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,15 @@ static int ExceptionFilter(bool DumpStackAndCleanup,
195195
return EXCEPTION_EXECUTE_HANDLER;
196196
}
197197

198+
#if defined(__clang__) && defined(_M_IX86)
199+
// Work around PR44697.
200+
__attribute__((optnone))
198201
static bool InvokeFunctionCall(function_ref<void()> Fn,
199202
bool DumpStackAndCleanup, int &RetCode) {
203+
#else
204+
static bool InvokeFunctionCall(function_ref<void()> Fn,
205+
bool DumpStackAndCleanup, int &RetCode) {
206+
#endif
200207
__try {
201208
Fn();
202209
} __except (ExceptionFilter(DumpStackAndCleanup, GetExceptionInformation())) {

0 commit comments

Comments
 (0)