[PATCH] D131887: [NFC][SmallVector] Use std::conditional_t instead of std::conditional
Wang Yihan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 15 06:32:46 PDT 2022
yihanaa created this revision.
yihanaa added a reviewer: MaskRay.
yihanaa added a project: LLVM.
Herald added a subscriber: StephenFan.
Herald added a project: All.
yihanaa requested review of this revision.
Herald added a subscriber: llvm-commits.
Use std::conditional_t instead of std::conditional
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131887
Files:
llvm/include/llvm/ADT/SmallVector.h
Index: llvm/include/llvm/ADT/SmallVector.h
===================================================================
--- llvm/include/llvm/ADT/SmallVector.h
+++ llvm/include/llvm/ADT/SmallVector.h
@@ -92,8 +92,8 @@
template <class T>
using SmallVectorSizeType =
- typename std::conditional<sizeof(T) < 4 && sizeof(void *) >= 8, uint64_t,
- uint32_t>::type;
+ std::conditional_t<sizeof(T) < 4 && sizeof(void *) >= 8, uint64_t,
+ uint32_t>;
/// Figure out the offset of the first element.
template <class T, typename = void> struct SmallVectorAlignmentAndSize {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131887.452650.patch
Type: text/x-patch
Size: 619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220815/2d9d53ee/attachment.bin>
More information about the llvm-commits
mailing list