Add explicit 'unregister' method to CrashRecoveryConextCleanupRegistrar.

llvm-svn: 130885
This commit is contained in:
Ted Kremenek
2011-05-04 23:26:59 +00:00
parent dd550305e6
commit 37d44bdd92

View File

@@ -186,8 +186,13 @@ public:
}
~CrashRecoveryContextCleanupRegistrar() {
unregister();
}
void unregister() {
if (cleanup && !cleanup->cleanupFired)
cleanup->getContext()->unregisterCleanup(cleanup);
cleanup->getContext()->unregisterCleanup(cleanup);
cleanup = 0;
}
};
}