mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-30 16:34:03 +00:00
Fix a -Wunused-local-typedefs warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213002 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7847229c31
commit
9988c292f1
@ -23,7 +23,7 @@ namespace llvm {
|
||||
using namespace sys;
|
||||
|
||||
ThreadLocalImpl::ThreadLocalImpl() : data() {
|
||||
typedef int SIZE_TOO_BIG[sizeof(DWORD) <= sizeof(data) ? 1 : -1];
|
||||
static_assert(sizeof(DWORD) <= sizeof(data), "size too big");
|
||||
DWORD* tls = reinterpret_cast<DWORD*>(&data);
|
||||
*tls = TlsAlloc();
|
||||
assert(*tls != TLS_OUT_OF_INDEXES);
|
||||
|
Loading…
Reference in New Issue
Block a user