aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-03-22 04:33:13 +0000
committerTed Kremenek <kremenek@apple.com>2011-03-22 04:33:13 +0000
commit3311d951e22b133207ed6f8e384d80f0970a7fb3 (patch)
tree91b9843d74605f15574d1da7cc117c6fda1aec42
parentc943a9aa4f48bdbeae93a8263869e7db96cc2275 (diff)
Properly initialize all fields in CrashReporterCleanupContext. This caused the buildbot failure earlier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128071 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/CrashRecoveryContext.h3
-rw-r--r--lib/Support/CrashRecoveryContext.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Support/CrashRecoveryContext.h b/include/llvm/Support/CrashRecoveryContext.h
index 759d2f8c71..db835e8c20 100644
--- a/include/llvm/Support/CrashRecoveryContext.h
+++ b/include/llvm/Support/CrashRecoveryContext.h
@@ -101,11 +101,10 @@ class CrashRecoveryContextCleanup {
protected:
CrashRecoveryContext *context;
CrashRecoveryContextCleanup(CrashRecoveryContext *context)
- : context(context) {}
+ : context(context), cleanupFired(false) {}
public:
bool cleanupFired;
- CrashRecoveryContextCleanup() : cleanupFired(false) {}
virtual ~CrashRecoveryContextCleanup();
virtual void recoverResources() = 0;
diff --git a/lib/Support/CrashRecoveryContext.cpp b/lib/Support/CrashRecoveryContext.cpp
index 7c7b0e934d..899c3890d7 100644
--- a/lib/Support/CrashRecoveryContext.cpp
+++ b/lib/Support/CrashRecoveryContext.cpp
@@ -70,7 +70,7 @@ CrashRecoveryContext::~CrashRecoveryContext() {
CrashRecoveryContextCleanup *tmp = i;
i = tmp->next;
tmp->cleanupFired = true;
- //tmp->recoverResources();
+ tmp->recoverResources();
delete tmp;
}
tlIsRecoveringFromCrash.erase();