[PATCH] D48889: [demangler] Ensure proper alignment in BumpPointerAllocator
Serge Pavlov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 4 23:27:29 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL336311: [demangler] Avoid alignment warning (authored by sepavloff, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48889?vs=154108&id=154170#toc
Repository:
rL LLVM
https://reviews.llvm.org/D48889
Files:
llvm/trunk/lib/Demangle/ItaniumDemangle.cpp
Index: llvm/trunk/lib/Demangle/ItaniumDemangle.cpp
===================================================================
--- llvm/trunk/lib/Demangle/ItaniumDemangle.cpp
+++ llvm/trunk/lib/Demangle/ItaniumDemangle.cpp
@@ -1950,7 +1950,7 @@
static constexpr size_t AllocSize = 4096;
static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
- alignas(16) char InitialBuffer[AllocSize];
+ alignas(long double) char InitialBuffer[AllocSize];
BlockMeta* BlockList = nullptr;
void grow() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48889.154170.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180705/85fc0b0d/attachment.bin>
More information about the llvm-commits
mailing list