diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2021-09-23 18:09:17 -0400 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2021-09-28 17:34:01 -0400 |
commit | 86df5a2fa832cdb42928c7a6670eb927f04b98d4 (patch) | |
tree | 012a88572ce8ce72a8f636524d754ff75bb91bbf /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 952f030fe6ade193ead8f23a7654cf8d2c7aa3df (diff) | |
download | llvm-86df5a2fa832cdb42928c7a6670eb927f04b98d4.zip llvm-86df5a2fa832cdb42928c7a6670eb927f04b98d4.tar.gz llvm-86df5a2fa832cdb42928c7a6670eb927f04b98d4.tar.bz2 |
[libc++] Simplify std::ranges::subrange
Instead of using a base class to store the members and the optional
size, use [[no_unique_address]] to achieve the same thing without
needing a base class.
Also, as a fly-by:
- Change subrange from struct to class (per the standard)
- Improve the diagnostic for when one doesn't provide a size to the ctor of a sized subrange
- Replace this->member by just member since it's not in a dependent base anymore
This change would be an ABI break due to [[no_unique_address]], but we
haven't shipped ranges anywhere yet, so this shouldn't affect anyone.
Differential Revision: https://reviews.llvm.org/D110370
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions