[compiler-rt] r282254 - [compiler-rt][lsan] Fix compiler error due to attribute (windows)
Etienne Bergeron via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 23 08:11:41 PDT 2016
Author: etienneb
Date: Fri Sep 23 10:11:41 2016
New Revision: 282254
URL: http://llvm.org/viewvc/llvm-project?rev=282254&view=rev
Log:
[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
Modified:
compiler-rt/trunk/lib/lsan/lsan_thread.cc
Modified: compiler-rt/trunk/lib/lsan/lsan_thread.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_thread.cc?rev=282254&r1=282253&r2=282254&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_thread.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_thread.cc Fri Sep 23 10:11:41 2016
@@ -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);
}
More information about the llvm-commits
mailing list