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 | 4a338e3dc4f6afe89828d9efc05de0a41511d700 (patch) | |
tree | fd6fb82a1484fb71cb40d7db1410e5d16c81720a /llvm/lib/Support/CrashRecoveryContext.cpp | |
parent | 17ea3f5dbdfcea2fdd44b8ec4a19ada82f50b618 (diff) | |
download | bcm5719-llvm-4a338e3dc4f6afe89828d9efc05de0a41511d700.tar.gz bcm5719-llvm-4a338e3dc4f6afe89828d9efc05de0a41511d700.zip |
CrashRecovery: Use ThreadLocal::erase() instead of set(0).
llvm-svn: 109752
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
-rw-r--r-- | llvm/lib/Support/CrashRecoveryContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |