summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CrashRecoveryContext.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-03-19 00:59:37 +0000
committerTed Kremenek <kremenek@apple.com>2011-03-19 00:59:37 +0000
commit32aea2e401cf79aea0890bf343e1f51e3fedfb89 (patch)
treebd40a1043b2e79e23d5d40417c9cb679891548ed /llvm/lib/Support/CrashRecoveryContext.cpp
parent794a0714ad459bb971c038e544867d106ec43264 (diff)
downloadbcm5719-llvm-32aea2e401cf79aea0890bf343e1f51e3fedfb89.tar.gz
bcm5719-llvm-32aea2e401cf79aea0890bf343e1f51e3fedfb89.zip
Tweak CrashRecoveryContextCleanup to provide an easy method for clients to select between 'delete' and 'destructor' cleanups, and allow the destructor of CrashRecoveryContextCleanupRegister to be pseudo re-entrant.
llvm-svn: 127929
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
-rw-r--r--llvm/lib/Support/CrashRecoveryContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index d4e21a3a826..e558662611f 100644
--- a/llvm/lib/Support/CrashRecoveryContext.cpp
+++ b/llvm/lib/Support/CrashRecoveryContext.cpp
@@ -65,6 +65,7 @@ CrashRecoveryContext::~CrashRecoveryContext() {
while (i) {
CrashRecoveryContextCleanup *tmp = i;
i = tmp->next;
+ tmp->cleanupFired = true;
tmp->recoverResources();
delete tmp;
}
OpenPOWER on IntegriCloud