aboutsummaryrefslogtreecommitdiff
path: root/lib/System/ThreadLocal.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-20 20:54:37 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-20 20:54:37 +0000
commitb0270147b6fcecebcb456a8c1db491a2a1664e5a (patch)
tree230bc7f121e0909cc72403e7c91589772ae63edf /lib/System/ThreadLocal.cpp
parent4c207c2ddb3bda2488044b7eac2a5c1051c36bd2 (diff)
Fix --disable-threads build, PR7949.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/ThreadLocal.cpp')
-rw-r--r--lib/System/ThreadLocal.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp
index b84a8e7fd6..f6a55a1c0b 100644
--- a/lib/System/ThreadLocal.cpp
+++ b/lib/System/ThreadLocal.cpp
@@ -27,6 +27,7 @@ ThreadLocalImpl::ThreadLocalImpl() { }
ThreadLocalImpl::~ThreadLocalImpl() { }
void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
const void* ThreadLocalImpl::getInstance() { return data; }
+void ThreadLocalImpl::removeInstance() { data = 0; }
}
#else