mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Fixed assert that checks return value of TlsSetValue.
See http://msdn.microsoft.com/en-us/library/ms686818(VS.85).aspx Patch by Olaf Krzikalla! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -43,7 +43,7 @@ const void* ThreadLocalImpl::getInstance() {
|
|||||||
void ThreadLocalImpl::setInstance(const void* d){
|
void ThreadLocalImpl::setInstance(const void* d){
|
||||||
DWORD* tls = static_cast<DWORD*>(data);
|
DWORD* tls = static_cast<DWORD*>(data);
|
||||||
int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
|
int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
|
||||||
assert(errorcode == 0);
|
assert(errorcode != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user