[libcxx-commits] [PATCH] D136765: [ASan][libcxx] Annotating std::vector with all allocators
Eric Fiselier via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Nov 6 14:40:41 PST 2022
EricWF added inline comments.
================
Comment at: libcxx/include/vector:747
{
-
+#if _LIBCPP_CLANG_VER >= 16000
+ if (!__libcpp_is_constant_evaluated() && __beg)
----------------
philnik wrote:
> Could you explain here why this is possible in LLVM16, but not before?
Seconded.
Also, I really don't like having the condition be conditionally compiled. It smells weird, and it looks weird, and I think it'll lead to bugs.
Can you find another way to write this?
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