From: Owen Anderson Date: Fri, 26 Jun 2009 08:48:03 +0000 (+0000) Subject: Fix compilation without pthreads. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=02b97355aa79f4403eb7677a9c595854ac175f1d;p=oota-llvm.git 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 --- diff --git a/lib/System/Unix/ThreadLocal.inc b/lib/System/Unix/ThreadLocal.inc index 6ee840d7255..83d554d3077 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(d);} +const void* ThreadLocalImpl::getInstance() { return data; } +}