commit | a685582048ab2714b854acf228bd8b61def1ca53 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Thu Jul 29 15:24:21 2010 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Thu Jul 29 15:24:21 2010 +0000 |
tree | a4173f3f23cdd41a7a104c82c2d83e74855f6108 | |
parent | 115a932eb9e66efd424664dbd532dbed76faa072 [diff] [blame] |
CrashRecovery: Use ThreadLocal::erase() instead of set(0). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109752 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/CrashRecoveryContext.cpp b/lib/Support/CrashRecoveryContext.cpp index 1213484..4514a99 100644 --- a/lib/Support/CrashRecoveryContext.cpp +++ b/lib/Support/CrashRecoveryContext.cpp
@@ -31,7 +31,7 @@ CurrentContext.set(this); } ~CrashRecoveryContextImpl() { - CurrentContext.set(0); + CurrentContext.erase(); } void HandleCrash() {