[libcxx-commits] [libcxx] [libc++] constexpr deque (PR #129368)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 11 04:09:38 PDT 2026
================
@@ -955,11 +1022,16 @@ private:
__asan_back_moved,
};
- _LIBCPP_HIDE_FROM_ABI void __annotate_from_to(
+ _LIBCPP_HIDE_FROM_ABI void _LIBCPP_CONSTEXPR_SINCE_CXX26 __annotate_from_to(
size_type __beg,
size_type __end,
__asan_annotation_type __annotation_type,
__asan_annotation_place __place) const _NOEXCEPT {
+# if _LIBCPP_STD_VER >= 26
+ if consteval {
+ return;
+ }
+# endif // _LIBCPP_STD_VER >= 26
----------------
frederick-vs-ja wrote:
I believe it's simpler to just early return in constant evaluation in ASan stuffs. Ditto below.
https://github.com/llvm/llvm-project/pull/129368
More information about the libcxx-commits
mailing list