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
This commit is contained in:
Ted Kremenek 2011-03-22 04:33:13 +00:00
parent c943a9aa4f
commit 3311d951e2
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -70,7 +70,7 @@ CrashRecoveryContext::~CrashRecoveryContext() {
CrashRecoveryContextCleanup *tmp = i;
i = tmp->next;
tmp->cleanupFired = true;
//tmp->recoverResources();
tmp->recoverResources();
delete tmp;
}
tlIsRecoveringFromCrash.erase();