diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 06:53:29 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 06:53:29 +0000 |
commit | 91aef8ba97974aebe263f91b3ec4b5046c155c06 (patch) | |
tree | c8b69553416be8d0a70f709c6bb25fa7ec8507d4 /lib/System/ThreadLocal.cpp | |
parent | 80f62d0062a6008403eb889c35fa19939c5c50cf (diff) |
Fix the build on OpenBSD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/ThreadLocal.cpp')
-rw-r--r-- | lib/System/ThreadLocal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp index 8884e79714..b0c7fa56d7 100644 --- a/lib/System/ThreadLocal.cpp +++ b/lib/System/ThreadLocal.cpp @@ -44,7 +44,7 @@ ThreadLocalImpl::ThreadLocalImpl() : data(0) { int errorcode = pthread_key_create(key, NULL); assert(errorcode == 0); (void) errorcode; - data = key; + data = static_cast<void*>(key); } ThreadLocalImpl::~ThreadLocalImpl() { |