diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-26 08:48:03 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-26 08:48:03 +0000 |
commit | 941a29597d947a33dc7107d6e35a6030d14c2e37 (patch) | |
tree | 79f3c3e190f529adf48a25db5d8c71d4e83246b9 /lib | |
parent | 6dc8a5c1a2c1ea8e3a0a934af71504a275a058f9 (diff) | |
download | external_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.inc | 6 |
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; } +} |