File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ extern "C" int __sanitizer_verify_contiguous_container
19
19
template <typename T, typename Alloc>
20
20
TEST_CONSTEXPR bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c )
21
21
{
22
- if (std::__libcpp_is_constant_evaluated () )
22
+ if (TEST_IS_CONSTANT_EVALUATED )
23
23
return true ;
24
24
if (std::is_same<Alloc, std::allocator<T> >::value && c.data () != NULL )
25
25
return __sanitizer_verify_contiguous_container (
Original file line number Diff line number Diff line change @@ -464,14 +464,14 @@ class safe_allocator {
464
464
465
465
TEST_CONSTEXPR_CXX20 T* allocate (std::size_t n) {
466
466
T* memory = std::allocator<T>().allocate (n);
467
- if (!std::__libcpp_is_constant_evaluated () )
467
+ if (!TEST_IS_CONSTANT_EVALUATED )
468
468
std::memset (memory, 0 , sizeof (T) * n);
469
469
470
470
return memory;
471
471
}
472
472
473
473
TEST_CONSTEXPR_CXX20 void deallocate (T* p, std::size_t n) {
474
- if (!std::__libcpp_is_constant_evaluated () )
474
+ if (!TEST_IS_CONSTANT_EVALUATED )
475
475
DoNotOptimize (std::memset (p, 0 , sizeof (T) * n));
476
476
std::allocator<T>().deallocate (p, n);
477
477
}
You can’t perform that action at this time.
0 commit comments