diff options
| author | Ted Kremenek <kremenek@apple.com> | 2011-03-22 04:33:13 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2011-03-22 04:33:13 +0000 |
| commit | 857e535520e81ac550fe83b5de190d1255ddbc4b (patch) | |
| tree | f74962c4040537153eba77593b3e8af97df8160f /llvm | |
| parent | 576d8834fe41bf73802832e7ac204b98455bfe25 (diff) | |
| download | bcm5719-llvm-857e535520e81ac550fe83b5de190d1255ddbc4b.tar.gz bcm5719-llvm-857e535520e81ac550fe83b5de190d1255ddbc4b.zip | |
Properly initialize all fields in CrashReporterCleanupContext. This caused the buildbot failure earlier.
llvm-svn: 128071
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/CrashRecoveryContext.h | 3 | ||||
| -rw-r--r-- | llvm/lib/Support/CrashRecoveryContext.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/CrashRecoveryContext.h b/llvm/include/llvm/Support/CrashRecoveryContext.h index 759d2f8c718..db835e8c204 100644 --- a/llvm/include/llvm/Support/CrashRecoveryContext.h +++ b/llvm/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/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp index 7c7b0e934d3..899c3890d78 100644 --- a/llvm/lib/Support/CrashRecoveryContext.cpp +++ b/llvm/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(); |

