summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2019-01-22 13:57:29 +0000
committerSerge Guelton <sguelton@quarkslab.com>2019-01-22 13:57:29 +0000
commitc4fe72c015918230d3272a2dbc408e60a688f693 (patch)
treeb05556b6ed7830662cb6d9b8ec62f667bac0eb46
parent776f809be3a4d166dc53e7f75acd5bfac4fdbe0f (diff)
downloadbcm5719-llvm-c4fe72c015918230d3272a2dbc408e60a688f693.tar.gz
bcm5719-llvm-c4fe72c015918230d3272a2dbc408e60a688f693.zip
Slight fix for r351820
llvm-svn: 351821
-rw-r--r--llvm/include/llvm/Support/type_traits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/type_traits.h b/llvm/include/llvm/Support/type_traits.h
index 1ceeedd7856..c8c6a76a90f 100644
--- a/llvm/include/llvm/Support/type_traits.h
+++ b/llvm/include/llvm/Support/type_traits.h
@@ -124,7 +124,7 @@ struct is_trivially_move_constructible<T &&> : std::true_type {};
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;
};
OpenPOWER on IntegriCloud