Re: [Mesa-dev] [PATCH] r600/sb: cleanup if_conversion iterator to be legal C++

2018-06-28 Thread Mathias Fröhlich
Hi, On Friday, 29 June 2018 04:49:42 CEST Dave Airlie wrote: > From: Dave Airlie > > 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 us

[Mesa-dev] [PATCH] r600/sb: cleanup if_conversion iterator to be legal C++

2018-06-28 Thread Dave Airlie
From: Dave Airlie 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. Cc: --- src/gallium/dr