Skip to content

Commit aa4a1bb

Browse files
committed
Use max_align_t for InitialBuffer alignment
1 parent cf6b512 commit aa4a1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/utils/libclc-remangler/LibclcRemangler.cpp

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

153-
alignas(long double) char InitialBuffer[AllocSize];
153+
alignas(max_align_t) char InitialBuffer[AllocSize];
154154
BlockMeta *BlockList = nullptr;
155155
};
156156

0 commit comments

Comments
 (0)