Author: Duncan P. N. Exon Smith Date: 2020-12-02T14:33:20-08:00 New Revision: 168b803b4519ea49b11dfc98560623beb20e812f
URL: https://github.com/llvm/llvm-project/commit/168b803b4519ea49b11dfc98560623beb20e812f DIFF: https://github.com/llvm/llvm-project/commit/168b803b4519ea49b11dfc98560623beb20e812f.diff LOG: ADT: Remove redundant `alignas` from IntervalMap, NFC `AlignedArrayCharUnion` is now using `alignas`, which is properly supported now by all the host toolchains we support. As a result, the extra `alignas` on `IntervalMap` isn't needed anymore. This is effectively a revert of 379daa29744cd96b0a87ed0d4a010fa4bc47ce73. Differential Revision: https://reviews.llvm.org/D92509 Added: Modified: llvm/include/llvm/ADT/IntervalMap.h Removed: ################################################################################ diff --git a/llvm/include/llvm/ADT/IntervalMap.h b/llvm/include/llvm/ADT/IntervalMap.h index db7804d0a551..b6c9fc79108c 100644 --- a/llvm/include/llvm/ADT/IntervalMap.h +++ b/llvm/include/llvm/ADT/IntervalMap.h @@ -963,8 +963,7 @@ class IntervalMap { private: // The root data is either a RootLeaf or a RootBranchData instance. - alignas(RootLeaf) alignas(RootBranchData) - AlignedCharArrayUnion<RootLeaf, RootBranchData> data; + AlignedCharArrayUnion<RootLeaf, RootBranchData> data; // Tree height. // 0: Leaves in root. _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits