Skip to content

Commit 428a15f

Browse files
author
Advenam Tacet
committed
Remove constexpr magic
1 parent 1eea92e commit 428a15f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libcxx/include/string

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,9 +1891,8 @@ private:
18911891
#if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
18921892
const void* __begin = data();
18931893
const void* __end = data() + capacity() + 1;
1894-
if _LIBCPP_CONSTEXPR_SINCE_CXX17 (__asan_annotate_container_with_allocator<allocator_type>::value)
1895-
if(!__libcpp_is_constant_evaluated())
1896-
__sanitizer_annotate_contiguous_container(__begin, __end, __old_mid, __new_mid);
1894+
if (__asan_annotate_container_with_allocator<allocator_type>::value && !__libcpp_is_constant_evaluated())
1895+
__sanitizer_annotate_contiguous_container(__begin, __end, __old_mid, __new_mid);
18971896
#endif
18981897
}
18991898

0 commit comments

Comments
 (0)