diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-07-13 16:35:26 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-07-13 16:35:26 +0000 |
commit | 9cad502555b5b0ad5dc3766f7d363db939387fd1 (patch) | |
tree | dee5e09a8152134c94b50c5f4ee70b85c9499273 /libcxx/include/algorithm | |
parent | ca8c2f7638691ce6b306333de0bce5438e81ce87 (diff) | |
download | bcm5719-llvm-9cad502555b5b0ad5dc3766f7d363db939387fd1.tar.gz bcm5719-llvm-9cad502555b5b0ad5dc3766f7d363db939387fd1.zip |
Make internal class __wrap_iter constexpr when not using libc++'s debugging mode. Introduce a new macro _LIBCPP_CONSTEXPR_IF_NODEBUG to mark this.
llvm-svn: 337019
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r-- | libcxx/include/algorithm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index a94b07bda20..b8fa7e77927 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -1708,7 +1708,7 @@ __unwrap_iter(move_iterator<_Tp*> __i) #if _LIBCPP_DEBUG_LEVEL < 2 template <class _Tp> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_IF_NODEBUG typename enable_if < is_trivially_copy_assignable<_Tp>::value, @@ -1722,7 +1722,7 @@ __unwrap_iter(__wrap_iter<_Tp*> __i) #else template <class _Tp> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_IF_NODEBUG typename enable_if < is_trivially_copy_assignable<_Tp>::value, |