summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
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
commit276fc52b728449328ce8938a114847bcb9078d91 (patch)
tree9b6fdc3fc83a17d97fec1c7fb18705a4eb7307ec /llvm/lib/System
parentc69b740df42c28c4063627a0103310f1a1b85ff2 (diff)
downloadbcm5719-llvm-276fc52b728449328ce8938a114847bcb9078d91.tar.gz
bcm5719-llvm-276fc52b728449328ce8938a114847bcb9078d91.zip
Fix error in the Win32 implementation pointed out by Howard Su.
llvm-svn: 74248
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Win32/ThreadLocal.inc2
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);
}
OpenPOWER on IntegriCloud