summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/System/Unix/ThreadLocal.inc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/lib/System/Unix/ThreadLocal.inc')
-rw-r--r--contrib/llvm/lib/System/Unix/ThreadLocal.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/llvm/lib/System/Unix/ThreadLocal.inc b/contrib/llvm/lib/System/Unix/ThreadLocal.inc
index 83d554d3..6769520 100644
--- a/contrib/llvm/lib/System/Unix/ThreadLocal.inc
+++ b/contrib/llvm/lib/System/Unix/ThreadLocal.inc
@@ -22,4 +22,5 @@ ThreadLocalImpl::ThreadLocalImpl() { }
ThreadLocalImpl::~ThreadLocalImpl() { }
void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
const void* ThreadLocalImpl::getInstance() { return data; }
+void ThreadLocalImpl::removeInstance() { setInstance(0); }
}
OpenPOWER on IntegriCloud