diff options
author | Zachary Turner <zturner@google.com> | 2018-07-20 16:51:55 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-07-20 16:51:55 +0000 |
commit | 862439c7cb77c662314371f1d1b298d69264a9a9 (patch) | |
tree | 33785b53f13229a395b2f0dfccef22a6ca33884e | |
parent | fffa9b589785c4cf97eaf1ad51a9596fcdcf326b (diff) | |
download | bcm5719-llvm-862439c7cb77c662314371f1d1b298d69264a9a9.tar.gz bcm5719-llvm-862439c7cb77c662314371f1d1b298d69264a9a9.zip |
Change bool_constant to integral_constant.
bool_constant is C++17.
llvm-svn: 337576
-rw-r--r-- | llvm/include/llvm/ADT/STLExtras.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h index d1756d45d7c..94365dd9ced 100644 --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/include/llvm/ADT/STLExtras.h @@ -61,7 +61,8 @@ using ValueOfRange = typename std::remove_reference<decltype( // Extra additions to <type_traits> //===----------------------------------------------------------------------===// -template <typename T> struct negation : std::bool_constant<!bool(T::value)> {}; +template <typename T> +struct negation : std::integral_constant<bool, !bool(T::value)> {}; template <typename...> struct conjunction : std::true_type {}; template <typename B1> struct conjunction<B1> : B1 {}; |