Skip to content
Commit 83716106 authored by Dave Airlie's avatar Dave Airlie Committed by Dylan Baker
Browse files

r600/sb: cleanup if_conversion iterator to be legal C++



The current code causes:
/usr/include/c++/8/debug/safe_iterator.h:207:
Error: attempt to copy from a singular iterator.

This is due to the iterators getting invalidated, fix the
reverse iterator to use the return value from erase, and
cast it properly.

(used Mathias suggestion)
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarMathias Fröhlich <mathias.froehlich@web.de>

(cherry picked from commit 8c51caab)
parent 81af1a0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment