CrashRecovery: Use ThreadLocal::erase() instead of set(0).
authorDaniel Dunbar <daniel@zuster.org>
Thu, 29 Jul 2010 15:24:21 +0000 (15:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 29 Jul 2010 15:24:21 +0000 (15:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109752 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/CrashRecoveryContext.cpp

index 1213484f8c1d14d4756adac55e4f16797b1f6ebc..4514a9948d4cc978a704475a8c602e3cdb5c4e49 100644 (file)
@@ -31,7 +31,7 @@ public:
     CurrentContext.set(this);
   }
   ~CrashRecoveryContextImpl() {
-    CurrentContext.set(0);
+    CurrentContext.erase();
   }
 
   void HandleCrash() {