diff options
Diffstat (limited to 'llvm/include/llvm/Support/TrailingObjects.h')
-rw-r--r-- | llvm/include/llvm/Support/TrailingObjects.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Support/TrailingObjects.h b/llvm/include/llvm/Support/TrailingObjects.h index 49be89613c43..0d9c4503aa9b 100644 --- a/llvm/include/llvm/Support/TrailingObjects.h +++ b/llvm/include/llvm/Support/TrailingObjects.h @@ -326,8 +326,8 @@ public: /// used in the class; they are supplied here redundantly only so /// that it's clear what the counts are counting in callers. template <typename... Tys> - static constexpr typename std::enable_if< - std::is_same<Foo<TrailingTys...>, Foo<Tys...>>::value, size_t>::type + static constexpr std::enable_if_t< + std::is_same<Foo<TrailingTys...>, Foo<Tys...>>::value, size_t> additionalSizeToAlloc(typename trailing_objects_internal::ExtractSecondType< TrailingTys, size_t>::type... Counts) { return ParentType::additionalSizeToAllocImpl(0, Counts...); @@ -338,8 +338,8 @@ public: /// additionalSizeToAlloc, except it *does* include the size of the base /// object. template <typename... Tys> - static constexpr typename std::enable_if< - std::is_same<Foo<TrailingTys...>, Foo<Tys...>>::value, size_t>::type + static constexpr std::enable_if_t< + std::is_same<Foo<TrailingTys...>, Foo<Tys...>>::value, size_t> totalSizeToAlloc(typename trailing_objects_internal::ExtractSecondType< TrailingTys, size_t>::type... Counts) { return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...); |