Skip to content

Commit

Permalink
Add explicit 'unregister' method to CrashRecoveryConextCleanupRegistrar.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130885 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
tkremenek committed May 4, 2011
1 parent becfb88 commit 2169ad8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/llvm/Support/CrashRecoveryContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,13 @@ class CrashRecoveryContextCleanupRegistrar {
}

~CrashRecoveryContextCleanupRegistrar() {
unregister();
}

void unregister() {
if (cleanup && !cleanup->cleanupFired)
cleanup->getContext()->unregisterCleanup(cleanup);
cleanup->getContext()->unregisterCleanup(cleanup);
cleanup = 0;
}
};
}
Expand Down

0 comments on commit 2169ad8

Please sign in to comment.