Skip to content

Commit

Permalink
Merge pull request #1026 from trcrsired/master
Browse files Browse the repository at this point in the history
LLVM libc++20 upstream now uses _LIBCPP_HAS_ASAN causing asan to break. Fix it
  • Loading branch information
trcrsired authored Dec 10, 2024
2 parents 4b51e1a + dc40173 commit d03a0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fast_io_unit/string_impl/libc++.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ inline void set_size(::std::basic_string<elem, traits, alloc> &str,
decltype(auto) __r_{hack_rep(str)};
if (bool(__r_.__s.__is_long_))
{
#if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
#if (_LIBCPP_VERSION < 20 && !defined(_LIBCPP_HAS_NO_ASAN) || _LIBCPP_HAS_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
if (!::std::__libcpp_is_constant_evaluated())
{
auto dataptr{str.data()};
Expand Down

0 comments on commit d03a0cb

Please sign in to comment.