Skip to content

Commit

Permalink
Work around a compiler back-end assertion in vectorized minmax (#4739)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Guteniev <gutenev@gmail.com>
  • Loading branch information
StephanTLavavej and AlexGuteniev authored Jun 19, 2024
1 parent 2453aa4 commit c19507f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stl/src/vector_algorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2087,6 +2087,7 @@ namespace {
_Advance_bytes(_First, sizeof(_Ty));
}

#pragma loop(no_vector) // TRANSITION, VSO-2093761: work around a compiler back-end assertion
for (auto _Ptr = static_cast<const _Ty*>(_First); _Ptr != _Last; ++_Ptr) {
if constexpr ((_Mode & _Mode_min) != 0) {
if (*_Ptr < _Cur_min_val) {
Expand Down

0 comments on commit c19507f

Please sign in to comment.