[llvm] cab3ef2 - [ADT] Remove redundant typename (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 29 23:51:04 PDT 2022


Author: Kazu Hirata
Date: 2022-10-29T23:50:56-07:00
New Revision: cab3ef25398c3c8e0069b6338f71bd605dbc1665

URL: https://github.com/llvm/llvm-project/commit/cab3ef25398c3c8e0069b6338f71bd605dbc1665
DIFF: https://github.com/llvm/llvm-project/commit/cab3ef25398c3c8e0069b6338f71bd605dbc1665.diff

LOG: [ADT] Remove redundant typename (NFC)

Added: 
    

Modified: 
    llvm/include/llvm/ADT/FoldingSet.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/FoldingSet.h b/llvm/include/llvm/ADT/FoldingSet.h
index ec276d41da801..237668921cbb2 100644
--- a/llvm/include/llvm/ADT/FoldingSet.h
+++ b/llvm/include/llvm/ADT/FoldingSet.h
@@ -830,9 +830,9 @@ struct FoldingSetTrait<std::pair<T1, T2>> {
 };
 
 template <typename T>
-struct FoldingSetTrait<T, typename std::enable_if_t<std::is_enum<T>::value>> {
+struct FoldingSetTrait<T, std::enable_if_t<std::is_enum<T>::value>> {
   static void Profile(const T &X, FoldingSetNodeID &ID) {
-    ID.AddInteger(static_cast<typename std::underlying_type_t<T>>(X));
+    ID.AddInteger(static_cast<std::underlying_type_t<T>>(X));
   }
 };
 


        


More information about the llvm-commits mailing list