[llvm-commits] [llvm] r74597 - /llvm/trunk/lib/System/ThreadLocal.cpp

Owen Anderson resistor at mac.com
Tue Jun 30 23:53:29 PDT 2009


Author: resistor
Date: Wed Jul  1 01:53:29 2009
New Revision: 74597

URL: http://llvm.org/viewvc/llvm-project?rev=74597&view=rev
Log:
Fix the build on OpenBSD.

Modified:
    llvm/trunk/lib/System/ThreadLocal.cpp

Modified: llvm/trunk/lib/System/ThreadLocal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/ThreadLocal.cpp?rev=74597&r1=74596&r2=74597&view=diff

==============================================================================
--- llvm/trunk/lib/System/ThreadLocal.cpp (original)
+++ llvm/trunk/lib/System/ThreadLocal.cpp Wed Jul  1 01:53:29 2009
@@ -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() {





More information about the llvm-commits mailing list