Restore ordering of source location zones after load.

This commit is contained in:
Bartosz Taudul 2018-03-20 14:43:16 +01:00
parent f8f59bbd36
commit ceeae3c2cf

View File

@ -206,6 +206,12 @@ Worker::Worker( FileRead& f )
m_data.threads.push_back_no_space_check( td );
}
for( auto& v : m_data.sourceLocationZones )
{
auto& zones = v.second.zones;
std::sort( zones.begin(), zones.end(), []( const auto& lhs, const auto& rhs ) { return lhs.zone->start < rhs.zone->start; } );
}
f.Read( &sz, sizeof( sz ) );
m_data.gpuData.reserve( sz );
for( uint64_t i=0; i<sz; i++ )