Skip to content

Commit bb63567

Browse files
[llvm] Remove redundaunt typename (NFC)
1 parent 6106816 commit bb63567

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

llvm/include/llvm/ADT/Sequence.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ template <typename T, typename U> bool canTypeFitValue(const U Value) {
125125
// - its internal representation overflows.
126126
struct CheckedInt {
127127
// Integral constructor, asserts if Value cannot be represented as intmax_t.
128-
template <typename Integral, typename std::enable_if_t<
129-
std::is_integral<Integral>::value, bool> = 0>
128+
template <typename Integral,
129+
std::enable_if_t<std::is_integral<Integral>::value, bool> = 0>
130130
static CheckedInt from(Integral FromValue) {
131131
if (!canTypeFitValue<intmax_t>(FromValue))
132132
assertOutOfBounds();
@@ -137,7 +137,7 @@ struct CheckedInt {
137137

138138
// Enum constructor, asserts if Value cannot be represented as intmax_t.
139139
template <typename Enum,
140-
typename std::enable_if_t<std::is_enum<Enum>::value, bool> = 0>
140+
std::enable_if_t<std::is_enum<Enum>::value, bool> = 0>
141141
static CheckedInt from(Enum FromValue) {
142142
using type = std::underlying_type_t<Enum>;
143143
return from<type>(static_cast<type>(FromValue));
@@ -162,8 +162,8 @@ struct CheckedInt {
162162
}
163163

164164
// Convert to integral, asserts if Value cannot be represented as Integral.
165-
template <typename Integral, typename std::enable_if_t<
166-
std::is_integral<Integral>::value, bool> = 0>
165+
template <typename Integral,
166+
std::enable_if_t<std::is_integral<Integral>::value, bool> = 0>
167167
Integral to() const {
168168
if (!canTypeFitValue<Integral>(Value))
169169
assertOutOfBounds();
@@ -173,7 +173,7 @@ struct CheckedInt {
173173
// Convert to enum, asserts if Value cannot be represented as Enum's
174174
// underlying type.
175175
template <typename Enum,
176-
typename std::enable_if_t<std::is_enum<Enum>::value, bool> = 0>
176+
std::enable_if_t<std::is_enum<Enum>::value, bool> = 0>
177177
Enum to() const {
178178
using type = std::underlying_type_t<Enum>;
179179
return Enum(to<type>());

llvm/include/llvm/Support/TypeSize.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class LinearPolyBase {
9393
}
9494

9595
template <typename U = ScalarTy>
96-
friend typename std::enable_if_t<std::is_signed<U>::value, LeafTy>
96+
friend std::enable_if_t<std::is_signed<U>::value, LeafTy>
9797
operator-(const LeafTy &LHS) {
9898
LeafTy Copy = LHS;
9999
return Copy *= -1;

0 commit comments

Comments
 (0)