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();