aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit941a29597d947a33dc7107d6e35a6030d14c2e37 (patch)
tree79f3c3e190f529adf48a25db5d8c71d4e83246b9 /lib
parent6dc8a5c1a2c1ea8e3a0a934af71504a275a058f9 (diff)
downloadexternal_llvm-941a29597d947a33dc7107d6e35a6030d14c2e37.zip
external_llvm-941a29597d947a33dc7107d6e35a6030d14c2e37.tar.gz
external_llvm-941a29597d947a33dc7107d6e35a6030d14c2e37.tar.bz2
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')
-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 6ee840d..83d554d 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; }
+}