[llvm-commits] [llvm] r128071 - in /llvm/trunk: include/llvm/Support/CrashRecoveryContext.h lib/Support/CrashRecoveryContext.cpp
Ted Kremenek
kremenek at apple.com
Mon Mar 21 21:33:13 PDT 2011
Author: kremenek
Date: Mon Mar 21 23:33:13 2011
New Revision: 128071
URL: http://llvm.org/viewvc/llvm-project?rev=128071&view=rev
Log:
Properly initialize all fields in CrashReporterCleanupContext. This caused the buildbot failure earlier.
Modified:
llvm/trunk/include/llvm/Support/CrashRecoveryContext.h
llvm/trunk/lib/Support/CrashRecoveryContext.cpp
Modified: llvm/trunk/include/llvm/Support/CrashRecoveryContext.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CrashRecoveryContext.h?rev=128071&r1=128070&r2=128071&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CrashRecoveryContext.h (original)
+++ llvm/trunk/include/llvm/Support/CrashRecoveryContext.h Mon Mar 21 23:33:13 2011
@@ -101,11 +101,10 @@
protected:
CrashRecoveryContext *context;
CrashRecoveryContextCleanup(CrashRecoveryContext *context)
- : context(context) {}
+ : context(context), cleanupFired(false) {}
public:
bool cleanupFired;
- CrashRecoveryContextCleanup() : cleanupFired(false) {}
virtual ~CrashRecoveryContextCleanup();
virtual void recoverResources() = 0;
Modified: llvm/trunk/lib/Support/CrashRecoveryContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CrashRecoveryContext.cpp?rev=128071&r1=128070&r2=128071&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CrashRecoveryContext.cpp (original)
+++ llvm/trunk/lib/Support/CrashRecoveryContext.cpp Mon Mar 21 23:33:13 2011
@@ -70,7 +70,7 @@
CrashRecoveryContextCleanup *tmp = i;
i = tmp->next;
tmp->cleanupFired = true;
- //tmp->recoverResources();
+ tmp->recoverResources();
delete tmp;
}
tlIsRecoveringFromCrash.erase();
More information about the llvm-commits
mailing list