[libcxx-commits] [libcxx] [ASan][libc++] String annotations optimizations fix with lambda (PR #76200)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 8 16:03:34 PST 2024
AdvenamTacet wrote:
I reverted this PR: https://github.com/llvm/llvm-project/commit/1ea7a56057492d9da1124787a9855cc2edca7df9
I believe the correct line should have additionally a return type. Like:
```cpp
: __r_([](basic_string &__s) -> auto&& { if(!__s.__is_long()) __s.__annotate_delete(); return std::move(__s.__r_); }(__str)) {
```
PR with changed, but still untested version is here: https://github.com/llvm/llvm-project/pull/77394
https://github.com/llvm/llvm-project/pull/76200
More information about the libcxx-commits
mailing list