aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-26 00:51:20 +0000
committerOwen Anderson <resistor@mac.com>2009-06-26 00:51:20 +0000
commit1c7a848e5488c5b29cc80ccc07df006c5b524955 (patch)
tree82bbe1e6278588adaad58eae96e03d114d0ff3c4
parent55e7c827301da0e5e03b26835bff259c320b3bf7 (diff)
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
-rw-r--r--lib/System/Win32/ThreadLocal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/ThreadLocal.inc b/lib/System/Win32/ThreadLocal.inc
index 0ba3be451e..8ab37d9d75 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<DWORD*>(data);
- int errorcode = TlsSetValue(*tls, d);
+ int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
assert(errorcode == 0);
}