Some buildbots were choking on std::max_align_t, try using the global alias.
authorErik Pilkington <erik.pilkington@gmail.com>
Tue, 3 Jul 2018 00:48:27 +0000 (00:48 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Tue, 3 Jul 2018 00:48:27 +0000 (00:48 +0000)
llvm-svn: 336159

libcxxabi/src/cxa_demangle.cpp
llvm/lib/Demangle/ItaniumDemangle.cpp

index 1cdc29b..401f394 100644 (file)
@@ -1891,7 +1891,7 @@ class BumpPointerAllocator {
   static constexpr size_t AllocSize = 4096;
   static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
 
-  alignas(std::max_align_t) char InitialBuffer[AllocSize];
+  alignas(max_align_t) char InitialBuffer[AllocSize];
   BlockMeta* BlockList = nullptr;
 
   void grow() {
index c7bba85..b7e2e27 100644 (file)
@@ -1951,7 +1951,7 @@ class BumpPointerAllocator {
   static constexpr size_t AllocSize = 4096;
   static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
 
-  alignas(std::max_align_t) char InitialBuffer[AllocSize];
+  alignas(max_align_t) char InitialBuffer[AllocSize];
   BlockMeta* BlockList = nullptr;
 
   void grow() {