From: Owen Anderson Date: Wed, 1 Jul 2009 06:53:29 +0000 (+0000) Subject: Fix the build on OpenBSD. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=91aef8ba97974aebe263f91b3ec4b5046c155c06;p=oota-llvm.git Fix the build on OpenBSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74597 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp index 8884e79714b..b0c7fa56d7d 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 = key; + data = static_cast(key); } ThreadLocalImpl::~ThreadLocalImpl() {