ADT: Change AlignedCharArrayUnion to an alias of std::aligned_union_t, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 4 Dec 2020 02:37:59 +0000 (18:37 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 4 Dec 2020 19:59:35 +0000 (11:59 -0800)
commit4b5dc150b9862271720b3d56a3e723a55dd81838
treef1484cdfa9919050e7323a28e7e5cc6feee80372
parent5baef6353e8819e443d327f84edc9f2d1c8c0c9e
ADT: Change AlignedCharArrayUnion to an alias of std::aligned_union_t, NFC

All the users of `AlignedCharArrayUnion` were changed in
5b267fb7966157e0d79ea85cbc1d07f92f840d3c to stop peeking inside (to look
at `buffer`), so this finishes gutting it. It's now an alias of
`std::aligned_union_t`, with a minor difference in template parameters
(`std::aligned_union_t` takes a minimum size and 0+ types, whereas this
just takes 1+ types... maybe a bit simpler to use correctly?).

A follow up will remove `AlignedCharArrayUnion` entirely, inlining this
alias into its users.

Differential Revision: https://reviews.llvm.org/D92512
llvm/include/llvm/Support/AlignOf.h