Try again at making this work on OpenBSD.
authorOwen Anderson <resistor@mac.com>
Wed, 1 Jul 2009 16:19:23 +0000 (16:19 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 1 Jul 2009 16:19:23 +0000 (16:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74612 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/ThreadLocal.cpp

index b0c7fa56d7d354926e7203bd67bd091257fed480..e7054b528147189d2f02fde53de63aa793e48fd2 100644 (file)
@@ -44,7 +44,7 @@ ThreadLocalImpl::ThreadLocalImpl() : data(0) {
   int errorcode = pthread_key_create(key, NULL);
   assert(errorcode == 0);
   (void) errorcode;
-  data = static_cast<void*>(key);
+  data = (void*)key;
 }
 
 ThreadLocalImpl::~ThreadLocalImpl() {