Skip to content

Commit c19507f

Browse files
Work around a compiler back-end assertion in vectorized minmax (#4739)
Co-authored-by: Alex Guteniev <[email protected]>
1 parent 2453aa4 commit c19507f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stl/src/vector_algorithms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,6 +2087,7 @@ namespace {
20872087
_Advance_bytes(_First, sizeof(_Ty));
20882088
}
20892089

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

0 commit comments

Comments
 (0)