diff options
Diffstat (limited to 'llvm/lib/System/Win32/ThreadLocal.inc')
| -rw-r--r-- | llvm/lib/System/Win32/ThreadLocal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Win32/ThreadLocal.inc b/llvm/lib/System/Win32/ThreadLocal.inc index 5bba8b58f90..0ba3be451e6 100644 --- a/llvm/lib/System/Win32/ThreadLocal.inc +++ b/llvm/lib/System/Win32/ThreadLocal.inc @@ -35,12 +35,12 @@ ThreadLocalImpl::~ThreadLocalImpl() { delete tls; } -void* ThreadLocalImpl::getInstance() { +const void* ThreadLocalImpl::getInstance() { DWORD* tls = static_cast<DWORD*>(data); return TlsGetValue(*tls); } -void ThreadLocalImpl::setInstance(void* d){ +void ThreadLocalImpl::setInstance(const void* d){ DWORD* tls = static_cast<DWORD*>(data); int errorcode = TlsSetValue(*tls, d); assert(errorcode == 0); |

