diff options
| author | Louis Dionne <ldionne@apple.com> | 2018-11-21 17:31:55 +0000 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2018-11-21 17:31:55 +0000 |
| commit | 53922b7dd113cedd64de3ed2a35d19162220c14e (patch) | |
| tree | c622409788e3e26b4e3ac377639379eee42d4da4 /libcxx/include/string | |
| parent | 352adb6532827a47689cf011722a54c461a8b3c3 (diff) | |
| download | bcm5719-llvm-53922b7dd113cedd64de3ed2a35d19162220c14e.tar.gz bcm5719-llvm-53922b7dd113cedd64de3ed2a35d19162220c14e.zip | |
[libcxx] Make sure operator+ is declared with the right visibility attribute
Otherwise, Clang complains about internal_linkage not being applied to the
first declaration of the operator (and rightfully so).
llvm-svn: 347400
Diffstat (limited to 'libcxx/include/string')
| -rw-r--r-- | libcxx/include/string | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/string b/libcxx/include/string index 6f17c3a2a9a..0c9f1cf1b2b 100644 --- a/libcxx/include/string +++ b/libcxx/include/string @@ -580,6 +580,7 @@ basic_string<_CharT, _Traits, _Allocator> operator+(_CharT __x, const basic_string<_CharT,_Traits,_Allocator>& __y); template<class _CharT, class _Traits, class _Allocator> +inline _LIBCPP_INLINE_VISIBILITY basic_string<_CharT, _Traits, _Allocator> operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, const _CharT* __y); |

