Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Nov 21, 2023
1 parent c680dda commit 09071d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions include/hibf/misc/bit_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,15 +947,18 @@ class bit_vector :
if (size > base_t::capacity())
base_t::reserve(size);

# if defined(_LIBCPP_VERSION) && !defined(_LIBCPP_HAS_NO_ASAN)
# if defined(_LIBCPP_VERSION)
# ifndef _LIBCPP_HAS_NO_ASAN
__sanitizer_annotate_contiguous_container(base_t::data(),
base_t::data() + base_t::capacity(),
base_t::data() + base_t::size(),
base_t::data() + size);
# endif

# endif
fake_vector & vec = reinterpret_cast<fake_vector &>(*this);
vec.end = vec.begin + size;
# else
this->_M_impl._M_finish = this->_M_impl._M_start + size;
# endif
}
#else
HIBF_CONSTEXPR_VECTOR inline void resize_for_overwrite(size_t const size)
Expand Down

0 comments on commit 09071d7

Please sign in to comment.