From 2b1a6e7581f9febbe807a65f70a560d69a19cbed Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Tue, 30 Jun 2009 14:12:28 +0000 Subject: [PATCH] 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 --- lib/System/Win32/ThreadLocal.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/System/Win32/ThreadLocal.inc b/lib/System/Win32/ThreadLocal.inc index 8ab37d9d75e..c8f7840b003 100644 --- a/lib/System/Win32/ThreadLocal.inc +++ b/lib/System/Win32/ThreadLocal.inc @@ -43,7 +43,7 @@ const void* ThreadLocalImpl::getInstance() { void ThreadLocalImpl::setInstance(const void* d){ DWORD* tls = static_cast(data); int errorcode = TlsSetValue(*tls, const_cast(d)); - assert(errorcode == 0); + assert(errorcode != 0); } } -- 2.34.1