diff options
author | JF Bastien <jfbastien@apple.com> | 2019-07-29 23:12:48 +0000 |
---|---|---|
committer | JF Bastien <jfbastien@apple.com> | 2019-07-29 23:12:48 +0000 |
commit | 6dabc75940d66b32052fc93d1c9904e5fd65fcad (patch) | |
tree | f7cf3c30bc9a99e2fbbd526bbbcd58d3e33452c7 /lib/Sema/TypeLocBuilder.cpp | |
parent | cb15cf86d9f70d93d4778b85f970346280bb0978 (diff) | |
download | clang-6dabc75940d66b32052fc93d1c9904e5fd65fcad.tar.gz |
[NFC] avoid AlignedCharArray in clang
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/cfe/trunk@367274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/TypeLocBuilder.cpp')
-rw-r--r-- | lib/Sema/TypeLocBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/TypeLocBuilder.cpp b/lib/Sema/TypeLocBuilder.cpp index b451403544..2dcbbd83c6 100644 --- a/lib/Sema/TypeLocBuilder.cpp +++ b/lib/Sema/TypeLocBuilder.cpp @@ -51,7 +51,7 @@ void TypeLocBuilder::grow(size_t NewCapacity) { &Buffer[Index], Capacity - Index); - if (Buffer != InlineBuffer.buffer) + if (Buffer != InlineBuffer) delete[] Buffer; Buffer = NewBuffer; |