[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:25:56 PDT 2018


sepavloff added inline comments.


================
Comment at: lib/Demangle/ItaniumDemangle.cpp:1953
 
-  alignas(16) char InitialBuffer[AllocSize];
+  alignas(alignof(long double)) char InitialBuffer[AllocSize];
   BlockMeta* BlockList = nullptr;
----------------
erik.pilkington wrote:
> This can be spelt alignas(long double).
Thanks!


Repository:
  rL LLVM

https://reviews.llvm.org/D48889





More information about the llvm-commits mailing list