From 4a338e3dc4f6afe89828d9efc05de0a41511d700 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 29 Jul 2010 15:24:21 +0000 Subject: CrashRecovery: Use ThreadLocal::erase() instead of set(0). llvm-svn: 109752 --- llvm/lib/Support/CrashRecoveryContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp') diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp index 1213484f8c1..4514a9948d4 100644 --- a/llvm/lib/Support/CrashRecoveryContext.cpp +++ b/llvm/lib/Support/CrashRecoveryContext.cpp @@ -31,7 +31,7 @@ public: CurrentContext.set(this); } ~CrashRecoveryContextImpl() { - CurrentContext.set(0); + CurrentContext.erase(); } void HandleCrash() { -- cgit v1.2.3