Skip to content
Snippets Groups Projects
Commit 857e5355 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Properly initialize all fields in CrashReporterCleanupContext. This caused...

Properly initialize all fields in CrashReporterCleanupContext.  This caused the buildbot failure earlier.

llvm-svn: 128071
parent 576d8834
No related branches found
No related tags found
No related merge requests found
...@@ -101,11 +101,10 @@ class CrashRecoveryContextCleanup { ...@@ -101,11 +101,10 @@ class CrashRecoveryContextCleanup {
protected: protected:
CrashRecoveryContext *context; CrashRecoveryContext *context;
CrashRecoveryContextCleanup(CrashRecoveryContext *context) CrashRecoveryContextCleanup(CrashRecoveryContext *context)
: context(context) {} : context(context), cleanupFired(false) {}
public: public:
bool cleanupFired; bool cleanupFired;
CrashRecoveryContextCleanup() : cleanupFired(false) {}
virtual ~CrashRecoveryContextCleanup(); virtual ~CrashRecoveryContextCleanup();
virtual void recoverResources() = 0; virtual void recoverResources() = 0;
......
...@@ -70,7 +70,7 @@ CrashRecoveryContext::~CrashRecoveryContext() { ...@@ -70,7 +70,7 @@ CrashRecoveryContext::~CrashRecoveryContext() {
CrashRecoveryContextCleanup *tmp = i; CrashRecoveryContextCleanup *tmp = i;
i = tmp->next; i = tmp->next;
tmp->cleanupFired = true; tmp->cleanupFired = true;
//tmp->recoverResources(); tmp->recoverResources();
delete tmp; delete tmp;
} }
tlIsRecoveringFromCrash.erase(); tlIsRecoveringFromCrash.erase();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment