summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-02-24 12:46:39 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-02-24 12:46:39 +0000
commitf6d58a2a1faf4957479fc85b1d72447d9c261ff7 (patch)
treec98487c7d04ef0b0ab82736096a4990913e8d8e7 /libcxx
parentff9d1980a72664e81df2e3fd2192552672b52851 (diff)
downloadbcm5719-llvm-f6d58a2a1faf4957479fc85b1d72447d9c261ff7.tar.gz
bcm5719-llvm-f6d58a2a1faf4957479fc85b1d72447d9c261ff7.zip
Make the forward declaration for array swap have the same inline/visibility attributes as the definition. Thanks to Steven Wu for the catch.
llvm-svn: 230330
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/utility1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/utility b/libcxx/include/utility
index 2cb10189c0b..96db60a6792 100644
--- a/libcxx/include/utility
+++ b/libcxx/include/utility
@@ -204,6 +204,7 @@ operator>=(const _Tp& __x, const _Tp& __y)
// forward
template<class _Tp, size_t _Np>
+inline _LIBCPP_INLINE_VISIBILITY
void swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value);
template <class _ForwardIterator1, class _ForwardIterator2>
OpenPOWER on IntegriCloud