diff options
| author | Owen Anderson <resistor@mac.com> | 2009-06-26 00:51:20 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-06-26 00:51:20 +0000 |
| commit | 276fc52b728449328ce8938a114847bcb9078d91 (patch) | |
| tree | 9b6fdc3fc83a17d97fec1c7fb18705a4eb7307ec /llvm/lib/System | |
| parent | c69b740df42c28c4063627a0103310f1a1b85ff2 (diff) | |
| download | bcm5719-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.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); } |

