Reconstruct source location payload map on data load.

This commit is contained in:
Bartosz Taudul 2018-03-04 17:20:14 +01:00
parent a374114358
commit e9395cd988

View File

@ -126,6 +126,7 @@ Worker::Worker( FileRead& f )
auto srcloc = m_slab.Alloc<SourceLocation>(); auto srcloc = m_slab.Alloc<SourceLocation>();
f.Read( srcloc, sizeof( *srcloc ) ); f.Read( srcloc, sizeof( *srcloc ) );
m_data.sourceLocationPayload.push_back( srcloc ); m_data.sourceLocationPayload.push_back( srcloc );
m_data.sourceLocationPayloadMap.emplace( srcloc, uint32_t( i ) );
} }
f.Read( &sz, sizeof( sz ) ); f.Read( &sz, sizeof( sz ) );