[llvm-branch-commits] [libcxx] [libc++][string] Improve constexpr performance (PR #184724)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 4 18:46:00 PST 2026


https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/184724

>From 8465c99883307ee890571901018225459d2233e9 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Wed, 4 Mar 2026 18:41:54 -0800
Subject: [PATCH] format

Created using spr 1.3.7
---
 libcxx/include/string | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/include/string b/libcxx/include/string
index 800fa68fd6963..27940be4384d1 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -1213,7 +1213,7 @@ public:
   // TODO(boomanaiden154): Once we mark this in destructors as dead on return,
   // we can use a normal call to __reset_internal_buffer and remove the extra
   // __rep constructor.
-  inline _LIBCPP_CONSTEXPR_SINCE_CXX20 ~basic_string() { 
+  inline _LIBCPP_CONSTEXPR_SINCE_CXX20 ~basic_string() {
     if (__libcpp_is_constant_evaluated())
       return;
     __reset_internal_buffer(__rep(__uninitialized_tag()));



More information about the llvm-branch-commits mailing list