diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-07-29 15:24:21 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-29 15:24:21 +0000 |
| commit | d76e4b93e6a388888c8dd60a0771da42edd21997 (patch) | |
| tree | a4173f3f23cdd41a7a104c82c2d83e74855f6108 /lib/Support | |
| parent | deedbb364ba81c311363587cf9481a9e0b778478 (diff) | |
| download | external_llvm-d76e4b93e6a388888c8dd60a0771da42edd21997.zip external_llvm-d76e4b93e6a388888c8dd60a0771da42edd21997.tar.gz external_llvm-d76e4b93e6a388888c8dd60a0771da42edd21997.tar.bz2 | |
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
Diffstat (limited to 'lib/Support')
| -rw-r--r-- | lib/Support/CrashRecoveryContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ public: CurrentContext.set(this); } ~CrashRecoveryContextImpl() { - CurrentContext.set(0); + CurrentContext.erase(); } void HandleCrash() { |
