llvm.org GIT mirror llvm / 3311d95
Properly initialize all fields in CrashReporterCleanupContext. This caused the buildbot failure earlier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128071 91177308-0d34-0410-b5e6-96231b3b80d8 Ted Kremenek 9 years ago
2 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
100100 protected:
101101 CrashRecoveryContext *context;
102102 CrashRecoveryContextCleanup(CrashRecoveryContext *context)
103 : context(context) {}
103 : context(context), cleanupFired(false) {}
104104 public:
105105 bool cleanupFired;
106106
107 CrashRecoveryContextCleanup() : cleanupFired(false) {}
108107 virtual ~CrashRecoveryContextCleanup();
109108 virtual void recoverResources() = 0;
110109
6969 CrashRecoveryContextCleanup *tmp = i;
7070 i = tmp->next;
7171 tmp->cleanupFired = true;
72 //tmp->recoverResources();
72 tmp->recoverResources();
7373 delete tmp;
7474 }
7575 tlIsRecoveringFromCrash.erase();