Fix error in the Win32 implementation pointed out by Howard Su.

llvm-svn: 74248
This commit is contained in:
Owen Anderson 2009-06-26 00:51:20 +00:00
parent c69b740df4
commit 276fc52b72
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ const void* ThreadLocalImpl::getInstance() {
void ThreadLocalImpl::setInstance(const void* d){
DWORD* tls = static_cast<DWORD*>(data);
int errorcode = TlsSetValue(*tls, d);
int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
assert(errorcode == 0);
}