summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
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
commit331c8ab96f8fa822dcadab570bf67ee06130218c (patch)
treeb44ae8cc08be2711796d5cb37c478ff41328f513 /llvm/lib/System
parent7779156b3904394201fb7b3310c1b7a079d603ce (diff)
downloadbcm5719-llvm-331c8ab96f8fa822dcadab570bf67ee06130218c.tar.gz
bcm5719-llvm-331c8ab96f8fa822dcadab570bf67ee06130218c.zip
Fix compilation without pthreads.
Patch by Xerxes Ranby. llvm-svn: 74283
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Unix/ThreadLocal.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/ThreadLocal.inc b/llvm/lib/System/Unix/ThreadLocal.inc
index 6ee840d7255..83d554d3077 100644
--- a/llvm/lib/System/Unix/ThreadLocal.inc
+++ b/llvm/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; }
+}
OpenPOWER on IntegriCloud