summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/ThreadLocal.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-01 06:53:29 +0000
committerOwen Anderson <resistor@mac.com>2009-07-01 06:53:29 +0000
commitcb86e113a99eac0749d9656c5ac0fb8983f8fb73 (patch)
tree3d1c821e9a12ff60dee765df5d3bde2d30b325eb /llvm/lib/System/ThreadLocal.cpp
parent0d5fc9a5b0197b9c212d8a592f69ae4ee60b9d03 (diff)
downloadbcm5719-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.cpp2
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() {
OpenPOWER on IntegriCloud