aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Unix/ThreadLocal.inc
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-26 08:48:03 +0000
committerOwen Anderson <resistor@mac.com>2009-06-26 08:48:03 +0000
commit02b97355aa79f4403eb7677a9c595854ac175f1d (patch)
tree79f3c3e190f529adf48a25db5d8c71d4e83246b9 /lib/System/Unix/ThreadLocal.inc
parent6677f5112793239d2a5cd7c5a3fb7d5b4e2cac19 (diff)
Fix compilation without pthreads.
Patch by Xerxes Ranby. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/ThreadLocal.inc')
-rw-r--r--lib/System/Unix/ThreadLocal.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/System/Unix/ThreadLocal.inc b/lib/System/Unix/ThreadLocal.inc
index 6ee840d725..83d554d307 100644
--- a/lib/System/Unix/ThreadLocal.inc
+++ b/lib/System/Unix/ThreadLocal.inc
@@ -20,6 +20,6 @@ namespace llvm {
using namespace sys;
ThreadLocalImpl::ThreadLocalImpl() { }
ThreadLocalImpl::~ThreadLocalImpl() { }
-void ThreadLocalImpl::setInstance(void* d) { data = d; }
-void* ThreadLocalImpl::getInstance() { return data; }
-} \ No newline at end of file
+void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
+const void* ThreadLocalImpl::getInstance() { return data; }
+}