[libcxx] r345289 - fix incorrect placement of _LIBCPP_ALWAYS_INLINE in valarray

Eric Fiselier eric at efcs.ca
Thu Oct 25 10:43:26 PDT 2018


Author: ericwf
Date: Thu Oct 25 10:43:26 2018
New Revision: 345289

URL: http://llvm.org/viewvc/llvm-project?rev=345289&view=rev
Log:
fix incorrect placement of _LIBCPP_ALWAYS_INLINE in valarray

Modified:
    libcxx/trunk/include/valarray

Modified: libcxx/trunk/include/valarray
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/valarray?rev=345289&r1=345288&r2=345289&view=diff
==============================================================================
--- libcxx/trunk/include/valarray (original)
+++ libcxx/trunk/include/valarray Thu Oct 25 10:43:26 2018
@@ -1054,6 +1054,7 @@ private:
     const _Up*
     end(const valarray<_Up>& __v);
 
+    _LIBCPP_INLINE_VISIBILITY
     void __clear(size_t __capacity);
     valarray& __assign_range(const value_type* __f, const value_type* __l);
 };
@@ -3728,7 +3729,7 @@ valarray<_Tp>::apply(value_type __f(cons
 }
 
 template <class _Tp>
-inline _LIBCPP_INLINE_VISIBILITY
+inline
 void valarray<_Tp>::__clear(size_t __capacity)
 {
   if (__begin_ != nullptr)




More information about the libcxx-commits mailing list