This should fix llvm.org/PR37944
llvm-svn: 336157
#include <algorithm>
#include <numeric>
#include <cassert>
+#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
static constexpr size_t AllocSize = 4096;
static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
- alignas(16) char InitialBuffer[AllocSize];
+ alignas(std::max_align_t) char InitialBuffer[AllocSize];
BlockMeta* BlockList = nullptr;
void grow() {
#include <cassert>
#include <cctype>
#include <cstdio>
+#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <numeric>
static constexpr size_t AllocSize = 4096;
static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
- alignas(16) char InitialBuffer[AllocSize];
+ alignas(std::max_align_t) char InitialBuffer[AllocSize];
BlockMeta* BlockList = nullptr;
void grow() {