[llvm] Remove redundaunt typename (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 6 Nov 2022 08:10:02 +0000 (00:10 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 6 Nov 2022 08:10:02 +0000 (01:10 -0700)
llvm/include/llvm/ADT/Sequence.h
llvm/include/llvm/Support/TypeSize.h

index 88a6fa9..1153352 100644 (file)
@@ -125,8 +125,8 @@ template <typename T, typename U> bool canTypeFitValue(const U Value) {
 // - its internal representation overflows.
 struct CheckedInt {
   // Integral constructor, asserts if Value cannot be represented as intmax_t.
-  template <typename Integral, typename std::enable_if_t<
-                                   std::is_integral<Integral>::value, bool> = 0>
+  template <typename Integral,
+            std::enable_if_t<std::is_integral<Integral>::value, bool> = 0>
   static CheckedInt from(Integral FromValue) {
     if (!canTypeFitValue<intmax_t>(FromValue))
       assertOutOfBounds();
@@ -137,7 +137,7 @@ struct CheckedInt {
 
   // Enum constructor, asserts if Value cannot be represented as intmax_t.
   template <typename Enum,
-            typename std::enable_if_t<std::is_enum<Enum>::value, bool> = 0>
+            std::enable_if_t<std::is_enum<Enum>::value, bool> = 0>
   static CheckedInt from(Enum FromValue) {
     using type = std::underlying_type_t<Enum>;
     return from<type>(static_cast<type>(FromValue));
@@ -162,8 +162,8 @@ struct CheckedInt {
   }
 
   // Convert to integral, asserts if Value cannot be represented as Integral.
-  template <typename Integral, typename std::enable_if_t<
-                                   std::is_integral<Integral>::value, bool> = 0>
+  template <typename Integral,
+            std::enable_if_t<std::is_integral<Integral>::value, bool> = 0>
   Integral to() const {
     if (!canTypeFitValue<Integral>(Value))
       assertOutOfBounds();
@@ -173,7 +173,7 @@ struct CheckedInt {
   // Convert to enum, asserts if Value cannot be represented as Enum's
   // underlying type.
   template <typename Enum,
-            typename std::enable_if_t<std::is_enum<Enum>::value, bool> = 0>
+            std::enable_if_t<std::is_enum<Enum>::value, bool> = 0>
   Enum to() const {
     using type = std::underlying_type_t<Enum>;
     return Enum(to<type>());
index 0777005..9cf2e87 100644 (file)
@@ -93,7 +93,7 @@ public:
   }
 
   template <typename U = ScalarTy>
-  friend typename std::enable_if_t<std::is_signed<U>::value, LeafTy>
+  friend std::enable_if_t<std::is_signed<U>::value, LeafTy>
   operator-(const LeafTy &LHS) {
     LeafTy Copy = LHS;
     return Copy *= -1;