[llvm] 00c2eb2 - [ADT] Remove redundant typename (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 23 00:43:23 PDT 2022


Author: Kazu Hirata
Date: 2022-10-23T00:43:17-07:00
New Revision: 00c2eb214d6948b7ac53dc024e8c4c375887d262

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

LOG: [ADT] Remove redundant typename (NFC)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index 5fa5c0b124bd4..2c242b317470b 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -1295,8 +1295,7 @@ namespace detail {
 /// always be a reference, to avoid returning a reference to a temporary.
 template <typename EltTy, typename FirstTy> class first_or_second_type {
 public:
-  using type =
-      typename std::conditional_t<std::is_reference<EltTy>::value, FirstTy,
+  using type = std::conditional_t<std::is_reference<EltTy>::value, FirstTy,
                                   std::remove_reference_t<FirstTy>>;
 };
 } // end namespace detail


        


More information about the llvm-commits mailing list