diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-06-12 01:06:16 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-06-12 01:06:16 +0000 |
commit | c6dc4d75fd05d807c8c1a7fc81f9f02b649fed3b (patch) | |
tree | 96bf0ec5999b2e8f672170c89df9300974f112d0 /llvm/lib/Support/Windows | |
parent | f8f128606c12836b2c6521fcac64ce952764821a (diff) | |
download | bcm5719-llvm-c6dc4d75fd05d807c8c1a7fc81f9f02b649fed3b.tar.gz bcm5719-llvm-c6dc4d75fd05d807c8c1a7fc81f9f02b649fed3b.zip |
Satisfy C++ aliasing rules, per suggestion by Chandler.
llvm-svn: 158346
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r-- | llvm/lib/Support/Windows/ThreadLocal.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/ThreadLocal.inc b/llvm/lib/Support/Windows/ThreadLocal.inc index 99c6f4f63b3..057deb325d6 100644 --- a/llvm/lib/Support/Windows/ThreadLocal.inc +++ b/llvm/lib/Support/Windows/ThreadLocal.inc @@ -22,7 +22,7 @@ namespace llvm { using namespace sys; -ThreadLocalImpl::ThreadLocalImpl() : data(0) { +ThreadLocalImpl::ThreadLocalImpl() : data() { typedef int SIZE_TOO_BIG[sizeof(DWORD) <= sizeof(data) ? 1 : -1]; DWORD* tls = reinterpret_cast<DWORD*>(&data); *tls = TlsAlloc(); |