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:
Daniel Dunbar 2010-08-17 22:32:39 +00:00
parent b30266ed20
commit 09b0c78918
1 changed files with 4 additions and 0 deletions

View File

@ -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;