forked from OSchip/llvm-project
ATTRIBUTE_UNUSED has been renamed to LLVM_ATTRIBUTE_UNUSED.
Rather than rename this instance, use the cast-to-void idiom instead. This will hopefully fix the windows buildbots. llvm-svn: 117262
This commit is contained in:
parent
1be7dac8fd
commit
08745f5483
|
@ -17,7 +17,6 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Win32.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/System/ThreadLocal.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -43,8 +42,9 @@ const void* ThreadLocalImpl::getInstance() {
|
|||
|
||||
void ThreadLocalImpl::setInstance(const void* d){
|
||||
DWORD* tls = static_cast<DWORD*>(data);
|
||||
int ATTRIBUTE_UNUSED errorcode = TlsSetValue(*tls, const_cast<void*>(d));
|
||||
int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
|
||||
assert(errorcode != 0);
|
||||
(void)errorcode;
|
||||
}
|
||||
|
||||
void ThreadLocalImpl::removeInstance() {
|
||||
|
|
Loading…
Reference in New Issue