Properly initialize all fields in CrashReporterCleanupContext. This caused the build...
authorTed Kremenek <kremenek@apple.com>
Tue, 22 Mar 2011 04:33:13 +0000 (04:33 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 22 Mar 2011 04:33:13 +0000 (04:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128071 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CrashRecoveryContext.h
lib/Support/CrashRecoveryContext.cpp

index 759d2f8c71827013a2eaabaabd151399a1e4204b..db835e8c20489dd0f33c910d42dd9f7cca0ecfb9 100644 (file)
@@ -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;
 
index 7c7b0e934d30b0b03b956e452a9765c8d2b8e307..899c3890d78a9940b9f1e2391f375080f70b139c 100644 (file)
@@ -70,7 +70,7 @@ CrashRecoveryContext::~CrashRecoveryContext() {
     CrashRecoveryContextCleanup *tmp = i;
     i = tmp->next;
     tmp->cleanupFired = true;
-    //tmp->recoverResources();
+    tmp->recoverResources();
     delete tmp;
   }
   tlIsRecoveringFromCrash.erase();