We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa326d commit 1ea7a56Copy full SHA for 1ea7a56
libcxx/include/string
@@ -922,7 +922,7 @@ public:
922
// Turning off ASan instrumentation for variable initialization with _LIBCPP_STRING_INTERNAL_MEMORY_ACCESS
923
// does not work consistently during initialization of __r_, so we instead unpoison __str's memory manually first.
924
// __str's memory needs to be unpoisoned only in the case where it's a short string.
925
- : __r_([](basic_string &__s){ if(!__s.__is_long()) __s.__annotate_delete(); return std::move(__s.__r_); }(__str)) {
+ : __r_(((__str.__is_long() ? 0 : (__str.__annotate_delete(), 0)), std::move(__str.__r_))) {
926
__str.__r_.first() = __rep();
927
__str.__annotate_new(0);
928
if (!__is_long())
0 commit comments