[llvm] r351821 - Slight fix for r351820

Serge Guelton via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 22 05:57:30 PST 2019


Author: serge_sans_paille
Date: Tue Jan 22 05:57:29 2019
New Revision: 351821

URL: http://llvm.org/viewvc/llvm-project?rev=351821&view=rev
Log:
Slight fix for r351820

Modified:
    llvm/trunk/include/llvm/Support/type_traits.h

Modified: llvm/trunk/include/llvm/Support/type_traits.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/type_traits.h?rev=351821&r1=351820&r2=351821&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/type_traits.h (original)
+++ llvm/trunk/include/llvm/Support/type_traits.h Tue Jan 22 05:57:29 2019
@@ -124,7 +124,7 @@ struct is_trivially_move_constructible<T
 template <typename T>
 struct is_copy_assignable {
   template<class F>
-    static auto get(F*) -> decltype(std::declval<T &>() = std::declval<const T &>(), std::true_type{});
+    static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
     static std::false_type get(...);
     static constexpr bool value = decltype(get((T*)nullptr))::value;
 };
@@ -132,7 +132,7 @@ struct is_copy_assignable {
 template <typename T>
 struct is_move_assignable {
   template<class F>
-    static auto get(F*) -> decltype(std::declval<T &>() = std::declval<T &&>(), std::true_type{});
+    static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
     static std::false_type get(...);
     static constexpr bool value = decltype(get((T*)nullptr))::value;
 };




More information about the llvm-commits mailing list