projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adeab8d
)
Mark the newly added '__libcpp_is_constant_evaluated' as 'inline', since it can be...
author
Marshall Clow
<mclow.lists@gmail.com>
Tue, 2 Jul 2019 00:20:06 +0000
(
00:20
+0000)
committer
Marshall Clow
<mclow.lists@gmail.com>
Tue, 2 Jul 2019 00:20:06 +0000
(
00:20
+0000)
llvm-svn: 364879
libcxx/include/type_traits
patch
|
blob
|
history
diff --git
a/libcxx/include/type_traits
b/libcxx/include/type_traits
index
c7e4749
..
f954a81
100644
(file)
--- a/
libcxx/include/type_traits
+++ b/
libcxx/include/type_traits
@@
-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>