Mark the newly added '__libcpp_is_constant_evaluated' as 'inline', since it can be...
authorMarshall Clow <mclow.lists@gmail.com>
Tue, 2 Jul 2019 00:20:06 +0000 (00:20 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Tue, 2 Jul 2019 00:20:06 +0000 (00:20 +0000)
llvm-svn: 364879

libcxx/include/type_traits

index c7e4749..f954a81 100644 (file)
@@ -4007,9 +4007,11 @@ inline constexpr bool is_constant_evaluated() noexcept {
 }
 #endif
 
-_LIBCPP_CONSTEXPR bool __libcpp_is_constant_evaluated() _NOEXCEPT { return __builtin_is_constant_evaluated(); }
+inline _LIBCPP_CONSTEXPR
+bool __libcpp_is_constant_evaluated() _NOEXCEPT { return __builtin_is_constant_evaluated(); }
 #else
-_LIBCPP_CONSTEXPR bool __libcpp_is_constant_evaluated() _NOEXCEPT { return false; }
+inline _LIBCPP_CONSTEXPR
+bool __libcpp_is_constant_evaluated() _NOEXCEPT { return false; }
 #endif
 
 template <class _CharT>