mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
CrashRecovery: Clear the current context on the first crash, to avoid re-entering it if the cleanup code crashes.
llvm-svn: 111309
This commit is contained in:
parent
b5312b0f26
commit
e88f283f80
@ -38,6 +38,10 @@ public:
|
||||
}
|
||||
|
||||
void HandleCrash() {
|
||||
// Eliminate the current context entry, to avoid re-entering in case the
|
||||
// cleanup code crashes.
|
||||
CurrentContext.erase();
|
||||
|
||||
assert(!Failed && "Crash recovery context already failed!");
|
||||
Failed = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user