[libcxx-commits] [PATCH] D136765: [ASan][libcxx] Annotating std::vector with all allocators
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Nov 6 05:21:15 PST 2022
philnik added inline comments.
================
Comment at: libcxx/include/vector:747
{
-
+#if _LIBCPP_CLANG_VER >= 16000
+ if (!__libcpp_is_constant_evaluated() && __beg)
----------------
Could you explain here why this is possible in LLVM16, but not before?
================
Comment at: libcxx/test/libcxx/containers/sequences/vector/asan.pass.cpp:39
c.reserve(2*c.size());
- volatile T foo = c[c.size()]; // bad, but not caught by ASAN
((void)foo);
----------------
Could you instead add a test that checks this case?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136765/new/
https://reviews.llvm.org/D136765
More information about the libcxx-commits
mailing list