[libcxxabi] r336162 - Revert r336159, r336157. Some bots failed on qualified std::max_align_t, and other on unqualified max_align_t.

Erik Pilkington via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 2 18:30:54 PDT 2018


Author: epilk
Date: Mon Jul  2 18:30:53 2018
New Revision: 336162

URL: http://llvm.org/viewvc/llvm-project?rev=336162&view=rev
Log:
Revert r336159, r336157. Some bots failed on qualified std::max_align_t, and other on unqualified max_align_t.

I'll take another stab at this tomorrow. Any ideas for fixing this would be appreciated!

http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/23071/steps/build_Lld/logs/stdio
http://lab.llvm.org:8011/builders/clang-with-thin-lto-ubuntu/builds/11185/steps/build-stage1-compiler/logs/stdio

Modified:
    libcxxabi/trunk/src/cxa_demangle.cpp

Modified: libcxxabi/trunk/src/cxa_demangle.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp?rev=336162&r1=336161&r2=336162&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp (original)
+++ libcxxabi/trunk/src/cxa_demangle.cpp Mon Jul  2 18:30:53 2018
@@ -19,7 +19,6 @@
 #include <algorithm>
 #include <numeric>
 #include <cassert>
-#include <cstddef>
 #include <cstdio>
 #include <cstdlib>
 #include <cstring>
@@ -1891,7 +1890,7 @@ class BumpPointerAllocator {
   static constexpr size_t AllocSize = 4096;
   static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
 
-  alignas(max_align_t) char InitialBuffer[AllocSize];
+  alignas(16) char InitialBuffer[AllocSize];
   BlockMeta* BlockList = nullptr;
 
   void grow() {




More information about the cfe-commits mailing list