ADT: Stop peeking inside AlignedCharArrayUnion, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 2 Dec 2020 21:44:16 +0000 (13:44 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 4 Dec 2020 19:07:42 +0000 (11:07 -0800)
commit5b267fb7966157e0d79ea85cbc1d07f92f840d3c
treefe63b513de9acda298fac79f4195b0d498b513b0
parentf9c3954a6ec5d1066a67aadab848f02b9b78b056
ADT: Stop peeking inside AlignedCharArrayUnion, NFC

Update all the users of `AlignedCharArrayUnion` to stop peeking inside
(to look at `buffer`) so that a follow-up patch can replace it with an
alias to `std::aligned_union_t`.

This was reviewed as part of https://reviews.llvm.org/D92512, but I'm
splitting this bit out to commit first to reduce churn in case the
change to `AlignedCharArrayUnion` needs to be reverted for some
unexpected reason.
14 files changed:
clang/include/clang/AST/APValue.h
clang/include/clang/AST/ASTTypeTraits.h
clang/include/clang/AST/ParentMapContext.h
clang/lib/AST/APValue.cpp
clang/lib/AST/ASTImporter.cpp
clang/lib/Frontend/PrecompiledPreamble.cpp
llvm/include/llvm/ADT/DenseMap.h
llvm/include/llvm/ADT/IntervalMap.h
llvm/include/llvm/CodeGen/DIE.h
llvm/include/llvm/Support/Error.h
llvm/include/llvm/Support/ErrorOr.h
llvm/include/llvm/Support/JSON.h
llvm/lib/Support/JSON.cpp
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp