projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8fa798
)
CrashRecovery: Clear the current context on the first crash, to avoid re-entering...
author
Daniel Dunbar
<daniel@zuster.org>
Tue, 17 Aug 2010 22:32:39 +0000
(22:32 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Tue, 17 Aug 2010 22:32:39 +0000
(22:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111309
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/CrashRecoveryContext.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/CrashRecoveryContext.cpp
b/lib/Support/CrashRecoveryContext.cpp
index 296cc3e8f3bc1358bab4192bb6330e079842d7c1..49258ede83c1df71b22ff45e7a3917e3574c2ac8 100644
(file)
--- a/
lib/Support/CrashRecoveryContext.cpp
+++ b/
lib/Support/CrashRecoveryContext.cpp
@@
-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;