From 3311d951e22b133207ed6f8e384d80f0970a7fb3 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 22 Mar 2011 04:33:13 +0000 Subject: [PATCH] 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 --- include/llvm/Support/CrashRecoveryContext.h | 3 +-- lib/Support/CrashRecoveryContext.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/llvm/Support/CrashRecoveryContext.h b/include/llvm/Support/CrashRecoveryContext.h index 759d2f8c718..db835e8c204 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 7c7b0e934d3..899c3890d78 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(); -- 2.34.1