[clang] [libcxx] Allow string to use SSO in constant evaluation. (PR #66576)

James Y Knight via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 26 10:08:31 PDT 2023


================
@@ -880,7 +880,7 @@ public:
   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string()
       _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
       : __r_(__default_init_tag(), __default_init_tag()) {
-    __default_init();
+    __r_.first() = __rep();
----------------
jyknight wrote:

Done.

https://github.com/llvm/llvm-project/pull/66576


More information about the cfe-commits mailing list