[llvm-commits] [llvm] r109752 - /llvm/trunk/lib/Support/CrashRecoveryContext.cpp

Daniel Dunbar daniel at zuster.org
Thu Jul 29 08:24:21 PDT 2010


Author: ddunbar
Date: Thu Jul 29 10:24:21 2010
New Revision: 109752

URL: http://llvm.org/viewvc/llvm-project?rev=109752&view=rev
Log:
CrashRecovery: Use ThreadLocal::erase() instead of set(0).

Modified:
    llvm/trunk/lib/Support/CrashRecoveryContext.cpp

Modified: llvm/trunk/lib/Support/CrashRecoveryContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CrashRecoveryContext.cpp?rev=109752&r1=109751&r2=109752&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CrashRecoveryContext.cpp (original)
+++ llvm/trunk/lib/Support/CrashRecoveryContext.cpp Thu Jul 29 10:24:21 2010
@@ -31,7 +31,7 @@
     CurrentContext.set(this);
   }
   ~CrashRecoveryContextImpl() {
-    CurrentContext.set(0);
+    CurrentContext.erase();
   }
 
   void HandleCrash() {





More information about the llvm-commits mailing list