[compiler-rt] [sanitizer] Replace ALIGNED with alignas (PR #98958)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 14:46:29 PDT 2024


================
@@ -34,8 +34,8 @@ namespace __asan {
 // -------------------- User-specified callbacks ----------------- {{{1
 static void (*error_report_callback)(const char*);
 using ErrorMessageBuffer = InternalMmapVectorNoCtor<char, true>;
-static ALIGNED(
-    alignof(ErrorMessageBuffer)) char error_message_buffer_placeholder
+alignas(
----------------
vitalybuka wrote:

is reordering static and align is necessary,
I realy like static being the first.

The same for the rest.

https://github.com/llvm/llvm-project/pull/98958


More information about the llvm-commits mailing list