Rather than rename this instance, use the cast-to-void idiom
instead. This will hopefully fix the windows buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117262
91177308-0d34-0410-b5e6-
96231b3b80d8
//===----------------------------------------------------------------------===//
#include "Win32.h"
-#include "llvm/Support/Compiler.h"
#include "llvm/System/ThreadLocal.h"
namespace llvm {
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() {