diff options
author | Mikhail Maltsev <mikhail.maltsev@arm.com> | 2021-01-12 10:22:35 +0000 |
---|---|---|
committer | Mikhail Maltsev <mikhail.maltsev@arm.com> | 2021-01-12 10:22:35 +0000 |
commit | c1e08f0073e35cf17c0a0343cf7efff914dbd66d (patch) | |
tree | 61bf8acb542d528978f229b1ffdae90a86152d8e /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 891b4873c129e27755e90a9b8954b9f0d0e7c5a4 (diff) | |
download | llvm-c1e08f0073e35cf17c0a0343cf7efff914dbd66d.zip llvm-c1e08f0073e35cf17c0a0343cf7efff914dbd66d.tar.gz llvm-c1e08f0073e35cf17c0a0343cf7efff914dbd66d.tar.bz2 |
[clang][AST] Get rid of an alignment hack in DeclObjC.h [NFCI]
This code currently uses a union object to increase the
alignment of the type ObjCTypeParamList. The original intent of this
trick was to be able to use the expression `this + 1` to access the
beginning of a tail-allocated array of `ObjCTypeParamDecl *` pointers.
The code has since been refactored and uses `llvm::TrailingObjects` to
manage the tail-allocated array. This template takes care of
alignment, so the hack is no longer necessary.
This patch removes the union so that the `SourceRange` class can be
used directly instead of being re-implemented with raw representations
of source locations.
Reviewed By: aprantl
Differential Revision: https://reviews.llvm.org/D94224
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions