summaryrefslogtreecommitdiff
path: root/lib/lsan/lsan_thread.cc
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-09-23 15:11:41 +0000
committerEtienne Bergeron <etienneb@google.com>2016-09-23 15:11:41 +0000
commitd1c6577697f15c1d5b68ab5014c53f7618bffab6 (patch)
tree56b7fe8424db029def280750f45c5dd6ebc1b9d8 /lib/lsan/lsan_thread.cc
parent827ea206c1078fc7c7da287984a7ba4563390589 (diff)
[compiler-rt][lsan] Fix compiler error due to attribute (windows)
Summary: Window compiler is stricter for attributes location. This patch fixes a compilation error. ``` D:\src\llvm\llvm\projects\compiler-rt\lib\lsan\lsan_thread.cc(39): error C2144: syntax error: 'int' should be preceded by ';' ``` Reviewers: rnk, majnemer Subscribers: majnemer, llvm-commits, chrisha, dberris Differential Revision: https://reviews.llvm.org/D24810 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@282254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan_thread.cc')
-rw-r--r--lib/lsan/lsan_thread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lsan/lsan_thread.cc b/lib/lsan/lsan_thread.cc
index 8bd6d90ed..5dff4f748 100644
--- a/lib/lsan/lsan_thread.cc
+++ b/lib/lsan/lsan_thread.cc
@@ -36,7 +36,7 @@ static const uptr kMaxThreads = 1 << 13;
static const uptr kThreadQuarantineSize = 64;
void InitializeThreadRegistry() {
- static char thread_registry_placeholder[sizeof(ThreadRegistry)] ALIGNED(64);
+ static ALIGNED(64) char thread_registry_placeholder[sizeof(ThreadRegistry)];
thread_registry = new(thread_registry_placeholder)
ThreadRegistry(CreateThreadContext, kMaxThreads, kThreadQuarantineSize);
}