Fix the build on OpenBSD.
authorOwen Anderson <resistor@mac.com>
Wed, 1 Jul 2009 06:53:29 +0000 (06:53 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 1 Jul 2009 06:53:29 +0000 (06:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74597 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/ThreadLocal.cpp

index 8884e79714b7cf56de5e40e50bc2b78de5d327f2..b0c7fa56d7d354926e7203bd67bd091257fed480 100644 (file)
@@ -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() {