From 20f129a8666243cf3f67bd30daa3820242c87567 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 26 Jun 2009 00:51:20 +0000 Subject: Fix error in the Win32 implementation pointed out by Howard Su. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74248 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Win32/ThreadLocal.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/System') diff --git a/lib/System/Win32/ThreadLocal.inc b/lib/System/Win32/ThreadLocal.inc index 0ba3be4..8ab37d9 100644 --- a/lib/System/Win32/ThreadLocal.inc +++ b/lib/System/Win32/ThreadLocal.inc @@ -42,7 +42,7 @@ const void* ThreadLocalImpl::getInstance() { void ThreadLocalImpl::setInstance(const void* d){ DWORD* tls = static_cast(data); - int errorcode = TlsSetValue(*tls, d); + int errorcode = TlsSetValue(*tls, const_cast(d)); assert(errorcode == 0); } -- cgit v1.1