]> granicus.if.org Git - llvm/commit
[NFC] avoid AlignedCharArray in LLVM
authorJF Bastien <jfbastien@apple.com>
Mon, 29 Jul 2019 23:37:48 +0000 (23:37 +0000)
committerJF Bastien <jfbastien@apple.com>
Mon, 29 Jul 2019 23:37:48 +0000 (23:37 +0000)
commit6672e7aadbf8516298d7358722ae27e8785eb64e
treec155d8c2f180a2446f5568def8c7b604473fdee5
parent590c0a81d888385b5a61bad74efb85974e19186e
[NFC] avoid AlignedCharArray in LLVM

As discussed in D65249, don't use AlignedCharArray or std::aligned_storage. Just use alignas(X) char Buf[Size];. This will allow me to remove AlignedCharArray entirely, and works on the current minimum version of Visual Studio.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367277 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Endian.h
include/llvm/Support/TrailingObjects.h