mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix error in the Win32 implementation pointed out by Howard Su.
llvm-svn: 74248
This commit is contained in:
parent
05eb63598b
commit
ba05ead9db
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user