Fix the build on OpenBSD.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2009-07-01 06:53:29 +00:00
parent 80f62d0062
commit 91aef8ba97

View 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() {