Skip to content
Snippets Groups Projects
Commit 276fc52b authored by Owen Anderson's avatar Owen Anderson
Browse files

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

llvm-svn: 74248
parent c69b740d
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ const void* ThreadLocalImpl::getInstance() { ...@@ -42,7 +42,7 @@ const void* ThreadLocalImpl::getInstance() {
void ThreadLocalImpl::setInstance(const void* d){ void ThreadLocalImpl::setInstance(const void* d){
DWORD* tls = static_cast<DWORD*>(data); DWORD* tls = static_cast<DWORD*>(data);
int errorcode = TlsSetValue(*tls, d); int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
assert(errorcode == 0); assert(errorcode == 0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment