[libcxx-commits] [libcxx] [ASan][libc++] Annotating `std::basic_string` with all allocators (PR #75845)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 19 12:39:22 PST 2023


================
@@ -1891,8 +1891,7 @@ private:
 #if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
     const void* __begin = data();
     const void* __end   = data() + capacity() + 1;
-    if (!__libcpp_is_constant_evaluated() && __begin != nullptr &&
----------------
AdvenamTacet wrote:

I should probably add it in the description of the PR, but `data()` cannot be nullptr, so I'm removing unnecessary check. 

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


More information about the libcxx-commits mailing list