[llvm-commits] [llvm] r111309 - /llvm/trunk/lib/Support/CrashRecoveryContext.cpp
Daniel Dunbar
daniel at zuster.org
Tue Aug 17 15:32:39 PDT 2010
Author: ddunbar
Date: Tue Aug 17 17:32:39 2010
New Revision: 111309
URL: http://llvm.org/viewvc/llvm-project?rev=111309&view=rev
Log:
CrashRecovery: Clear the current context on the first crash, to avoid re-entering it if the cleanup code crashes.
Modified:
llvm/trunk/lib/Support/CrashRecoveryContext.cpp
Modified: llvm/trunk/lib/Support/CrashRecoveryContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CrashRecoveryContext.cpp?rev=111309&r1=111308&r2=111309&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CrashRecoveryContext.cpp (original)
+++ llvm/trunk/lib/Support/CrashRecoveryContext.cpp Tue Aug 17 17:32:39 2010
@@ -38,6 +38,10 @@
}
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;
More information about the llvm-commits
mailing list