[libcxx-commits] [libcxx] [libc++] Fix vector sanitization annotations on destruction (PR #121031)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 10 09:34:47 PST 2025
================
@@ -241,7 +241,7 @@ class _LIBCPP_TEMPLATE_VIS vector {
_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void operator()() {
if (__vec_.__begin_ != nullptr) {
- __vec_.__clear();
+ __vec_.clear();
----------------
ldionne wrote:
I think it would make sense to remove `__clear()` altogether, then. I think the only usage of `__clear()` would now be from `clear()`, and we can simply inline it there.
https://github.com/llvm/llvm-project/pull/121031
More information about the libcxx-commits
mailing list