@@ -1896,38 +1896,33 @@ private:
1896
1896
#endif
1897
1897
}
1898
1898
1899
- // ASan: short string is poisoned if and only if this function returns true.
1900
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 bool __asan_short_string_is_annotated () const _NOEXCEPT {
1901
- return !__libcpp_is_constant_evaluated ();
1902
- }
1903
-
1904
1899
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __annotate_new (size_type __current_size) const _NOEXCEPT {
1905
1900
(void ) __current_size;
1906
1901
#if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
1907
- if (!__libcpp_is_constant_evaluated () && ( __asan_short_string_is_annotated () || __is_long ()) )
1902
+ if (!__libcpp_is_constant_evaluated ())
1908
1903
__annotate_contiguous_container (data () + capacity () + 1 , data () + __current_size + 1 );
1909
1904
#endif
1910
1905
}
1911
1906
1912
1907
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __annotate_delete () const _NOEXCEPT {
1913
1908
#if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
1914
- if (!__libcpp_is_constant_evaluated () && ( __asan_short_string_is_annotated () || __is_long ()) )
1909
+ if (!__libcpp_is_constant_evaluated ())
1915
1910
__annotate_contiguous_container (data () + size () + 1 , data () + capacity () + 1 );
1916
1911
#endif
1917
1912
}
1918
1913
1919
1914
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __annotate_increase (size_type __n) const _NOEXCEPT {
1920
1915
(void ) __n;
1921
1916
#if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
1922
- if (!__libcpp_is_constant_evaluated () && ( __asan_short_string_is_annotated () || __is_long ()) )
1917
+ if (!__libcpp_is_constant_evaluated ())
1923
1918
__annotate_contiguous_container (data () + size () + 1 , data () + size () + 1 + __n);
1924
1919
#endif
1925
1920
}
1926
1921
1927
1922
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __annotate_shrink (size_type __old_size) const _NOEXCEPT {
1928
1923
(void ) __old_size;
1929
1924
#if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
1930
- if (!__libcpp_is_constant_evaluated () && ( __asan_short_string_is_annotated () || __is_long ()) )
1925
+ if (!__libcpp_is_constant_evaluated ())
1931
1926
__annotate_contiguous_container (data () + __old_size + 1 , data () + size () + 1 );
1932
1927
#endif
1933
1928
}
0 commit comments