Skip to content

Commit 0409a8a

Browse files
committed
Some buildbots were choking on std::max_align_t, try using the global alias.
llvm-svn: 336159
1 parent 6021469 commit 0409a8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libcxxabi/src/cxa_demangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ class BumpPointerAllocator {
18911891
static constexpr size_t AllocSize = 4096;
18921892
static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
18931893

1894-
alignas(std::max_align_t) char InitialBuffer[AllocSize];
1894+
alignas(max_align_t) char InitialBuffer[AllocSize];
18951895
BlockMeta* BlockList = nullptr;
18961896

18971897
void grow() {

llvm/lib/Demangle/ItaniumDemangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ class BumpPointerAllocator {
19511951
static constexpr size_t AllocSize = 4096;
19521952
static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
19531953

1954-
alignas(std::max_align_t) char InitialBuffer[AllocSize];
1954+
alignas(max_align_t) char InitialBuffer[AllocSize];
19551955
BlockMeta* BlockList = nullptr;
19561956

19571957
void grow() {

0 commit comments

Comments
 (0)