[all-commits] [llvm/llvm-project] 4b5dc1: ADT: Change AlignedCharArrayUnion to an alias of s...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Fri Dec 4 11:59:56 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b5dc150b9862271720b3d56a3e723a55dd81838
      https://github.com/llvm/llvm-project/commit/4b5dc150b9862271720b3d56a3e723a55dd81838
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M llvm/include/llvm/Support/AlignOf.h

  Log Message:
  -----------
  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




More information about the All-commits mailing list