mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
CrashRecovery: Clear the current context on the first crash, to avoid re-entering it if the cleanup code crashes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -38,6 +38,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HandleCrash() {
|
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!");
|
assert(!Failed && "Crash recovery context already failed!");
|
||||||
Failed = true;
|
Failed = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user