[libcxx-commits] [libcxx] [libc++] Clean up includes of <__assert> (PR #80091)
Konstantin Varlamov via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 6 17:03:35 PST 2024
================
@@ -938,7 +938,11 @@ public:
// Turning off ASan instrumentation for variable initialization with _LIBCPP_STRING_INTERNAL_MEMORY_ACCESS
// does not work consistently during initialization of __r_, so we instead unpoison __str's memory manually first.
// __str's memory needs to be unpoisoned only in the case where it's a short string.
- : __r_([](basic_string &__s) -> decltype(__s.__r_)&& { if(!__s.__is_long()) __s.__annotate_delete(); return std::move(__s.__r_); }(__str)) {
+ : __r_([](basic_string& __s) -> decltype(__s.__r_)&& {
----------------
var-const wrote:
Nit: this reformatting seems unrelated.
https://github.com/llvm/llvm-project/pull/80091
More information about the libcxx-commits
mailing list