projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55e7c82
)
Fix error in the Win32 implementation pointed out by Howard Su.
author
Owen Anderson
<resistor@mac.com>
Fri, 26 Jun 2009 00:51:20 +0000
(
00:51
+0000)
committer
Owen Anderson
<resistor@mac.com>
Fri, 26 Jun 2009 00:51:20 +0000
(
00:51
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74248
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Win32/ThreadLocal.inc
patch
|
blob
|
history
diff --git
a/lib/System/Win32/ThreadLocal.inc
b/lib/System/Win32/ThreadLocal.inc
index 0ba3be451e63d7d819bb2ed82bf91ece36367614..8ab37d9d75e06718cfe343f4b1bc54a0b94520d4 100644
(file)
--- 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);
}