diff options
Diffstat (limited to 'llvm/lib/System/Win32/ThreadLocal.inc')
| -rw-r--r-- | llvm/lib/System/Win32/ThreadLocal.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/ThreadLocal.inc b/llvm/lib/System/Win32/ThreadLocal.inc index 0ba3be451e6..8ab37d9d75e 100644 --- a/llvm/lib/System/Win32/ThreadLocal.inc +++ b/llvm/lib/System/Win32/ThreadLocal.inc @@ -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); } |

