diff options
| author | Aditya Kumar <hiraditya@msn.com> | 2016-09-08 14:31:44 +0000 |
|---|---|---|
| committer | Aditya Kumar <hiraditya@msn.com> | 2016-09-08 14:31:44 +0000 |
| commit | b839888af8f20a34662817c8ceb34658e3e201f8 (patch) | |
| tree | 5b456f15841e5cf90a55f3cdeff48bb0b353d2e5 /libcxx | |
| parent | b27ed0da3741388afa80b05d5e7c28d129f55bf2 (diff) | |
| download | bcm5719-llvm-b839888af8f20a34662817c8ceb34658e3e201f8.tar.gz bcm5719-llvm-b839888af8f20a34662817c8ceb34658e3e201f8.zip | |
Added 'inline' attribute to basic_string's destructor
Author: laxmansole
Reviewers: howard.hinnant
mclow.lists
Subscribers: EricWF, flyingforyou, evandro
Differential Revision: https://reviews.llvm.org/D22834
Currently basic_string's destructor is not getting inlined. So adding 'inline' attribute to ~basic_string().
Worked in collaboration with Aditya Kumar.
llvm-svn: 280944
Diffstat (limited to 'libcxx')
| -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 b9e044e82d4..1042ee6bbad 100644 --- a/libcxx/include/string +++ b/libcxx/include/string @@ -1798,6 +1798,7 @@ basic_string<_CharT, _Traits, _Allocator>::basic_string(initializer_list<value_t #endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS template <class _CharT, class _Traits, class _Allocator> +inline _LIBCPP_INLINE_VISIBILITY basic_string<_CharT, _Traits, _Allocator>::~basic_string() { #if _LIBCPP_DEBUG_LEVEL >= 2 |

