From: Owen Anderson Date: Wed, 1 Jul 2009 16:19:23 +0000 (+0000) Subject: Try again at making this work on OpenBSD. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4127ccdb8da08aac42264f7967bc5cdd4aea8200;p=oota-llvm.git Try again at making this work on OpenBSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74612 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp index b0c7fa56d7d..e7054b52814 100644 --- a/lib/System/ThreadLocal.cpp +++ b/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 = static_cast(key); + data = (void*)key; } ThreadLocalImpl::~ThreadLocalImpl() {