From c715f55245e018221377a09b46d1e4d7640a0317 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Fri, 28 Oct 2016 21:27:24 +0000 Subject: [PATCH] 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/D25624 Reapplying the patch as the bug https://llvm.org/bugs/show_bug.cgi?id=30341 is fixed. Currently basic_string's destructor is not getting inlined. So adding 'inline' attribute to ~basic_string(). Worked in collaboration with Aditya Kumar. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@285456 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/string | 1 + 1 file changed, 1 insertion(+) diff --git a/include/string b/include/string index b56ab384b..10bb9a13b 100644 --- a/include/string +++ b/include/string @@ -806,6 +806,7 @@ public: basic_string(initializer_list __il, const allocator_type& __a); #endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS + inline _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY ~basic_string(); _LIBCPP_INLINE_VISIBILITY