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 | cb86e113a99eac0749d9656c5ac0fb8983f8fb73 (patch) | |
tree | 3d1c821e9a12ff60dee765df5d3bde2d30b325eb /llvm/lib/System/ThreadLocal.cpp | |
parent | 0d5fc9a5b0197b9c212d8a592f69ae4ee60b9d03 (diff) | |
download | bcm5719-llvm-cb86e113a99eac0749d9656c5ac0fb8983f8fb73.tar.gz bcm5719-llvm-cb86e113a99eac0749d9656c5ac0fb8983f8fb73.zip |
Fix the build on OpenBSD.
llvm-svn: 74597
Diffstat (limited to 'llvm/lib/System/ThreadLocal.cpp')
-rw-r--r-- | llvm/lib/System/ThreadLocal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/ThreadLocal.cpp b/llvm/lib/System/ThreadLocal.cpp index 8884e79714b..b0c7fa56d7d 100644 --- a/llvm/lib/System/ThreadLocal.cpp +++ b/llvm/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() { |