diff options
-rw-r--r-- | include/llvm/Support/CrashRecoveryContext.h | 3 | ||||
-rw-r--r-- | 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 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(); |