commit | 91aef8ba97974aebe263f91b3ec4b5046c155c06 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Wed Jul 01 06:53:29 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Wed Jul 01 06:53:29 2009 +0000 |
tree | c8b69553416be8d0a70f709c6bb25fa7ec8507d4 | |
parent | 80f62d0062a6008403eb889c35fa19939c5c50cf [diff] [blame] |
Fix the build on OpenBSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74597 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp index 8884e79..b0c7fa5 100644 --- a/lib/System/ThreadLocal.cpp +++ b/lib/System/ThreadLocal.cpp
@@ -44,7 +44,7 @@ int errorcode = pthread_key_create(key, NULL); assert(errorcode == 0); (void) errorcode; - data = key; + data = static_cast<void*>(key); } ThreadLocalImpl::~ThreadLocalImpl() {