llvm.org GIT mirror llvm / 2169ad8
Add explicit 'unregister' method to CrashRecoveryConextCleanupRegistrar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130885 91177308-0d34-0410-b5e6-96231b3b80d8 Ted Kremenek 9 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
185185 }
186186
187187 ~CrashRecoveryContextCleanupRegistrar() {
188 unregister();
189 }
190
191 void unregister() {
188192 if (cleanup && !cleanup->cleanupFired)
189 cleanup->getContext()->unregisterCleanup(cleanup);
193 cleanup->getContext()->unregisterCleanup(cleanup);
194 cleanup = 0;
190195 }
191196 };
192197 }