CheckString() doesn't check if string query is still pending.

This commit is contained in:
Bartosz Taudul 2020-05-23 15:20:23 +02:00
parent ee22cf3b0c
commit dc0f2db3f2

View File

@ -3606,8 +3606,7 @@ void Worker::AddSourceLocation( const QueueSourceLocation& srcloc )
if( CheckString( srcloc.file ) )
{
StringRef ref( StringRef::Ptr, srcloc.file );
assert( m_pendingFileStrings.find( ref ) == m_pendingFileStrings.end() );
if( srcloc.file != 0 && m_checkedFileStrings.find( ref ) == m_checkedFileStrings.end() )
if( srcloc.file != 0 && m_checkedFileStrings.find( ref ) == m_checkedFileStrings.end() && m_pendingFileStrings.find( ref ) == m_pendingFileStrings.end() )
{
CacheSource( ref );
}