summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows/ThreadLocal.inc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Windows/ThreadLocal.inc')
-rw-r--r--llvm/lib/Support/Windows/ThreadLocal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/ThreadLocal.inc b/llvm/lib/Support/Windows/ThreadLocal.inc
index 14ce61933cb..b9cb8ff9836 100644
--- a/llvm/lib/Support/Windows/ThreadLocal.inc
+++ b/llvm/lib/Support/Windows/ThreadLocal.inc
@@ -34,7 +34,7 @@ ThreadLocalImpl::~ThreadLocalImpl() {
TlsFree(*tls);
}
-const void* ThreadLocalImpl::getInstance() {
+void *ThreadLocalImpl::getInstance() {
DWORD* tls = reinterpret_cast<DWORD*>(&data);
return TlsGetValue(*tls);
}
OpenPOWER on IntegriCloud