projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3960a95
)
Fix a -Wunused-local-typedefs warning
author
Alp Toker
<alp@nuanti.com>
Mon, 14 Jul 2014 22:46:45 +0000
(22:46 +0000)
committer
Alp Toker
<alp@nuanti.com>
Mon, 14 Jul 2014 22:46:45 +0000
(22:46 +0000)
llvm-svn: 213002
llvm/lib/Support/Windows/ThreadLocal.inc
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/Windows/ThreadLocal.inc
b/llvm/lib/Support/Windows/ThreadLocal.inc
index
3914cf7
..
14ce619
100644
(file)
--- a/
llvm/lib/Support/Windows/ThreadLocal.inc
+++ b/
llvm/lib/Support/Windows/ThreadLocal.inc
@@
-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);