diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-03-19 00:59:37 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-03-19 00:59:37 +0000 |
commit | 1a06d5721acb9a2b69217fc8872ed5b14a482104 (patch) | |
tree | a4ec4fdd2cc829ea5a1d7649142f628bed0b6664 /lib/Support/CrashRecoveryContext.cpp | |
parent | fb200e30a48c3e682742174453d9550d1dc589d5 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CrashRecoveryContext.cpp')
-rw-r--r-- | lib/Support/CrashRecoveryContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/CrashRecoveryContext.cpp b/lib/Support/CrashRecoveryContext.cpp index d4e21a3a82..e558662611 100644 --- a/lib/Support/CrashRecoveryContext.cpp +++ b/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; } |