Don't use an IterationLoop for main indexer.

This causes the indexer to exit.
This commit is contained in:
Jacob Dufault 2018-03-21 11:57:09 -07:00 committed by Fangrui Song
parent 23bf95b5e3
commit 38fbe89b4c

View File

@ -625,8 +625,7 @@ void Indexer_Main(Config* config,
// Build one index per-indexer, as building the index acquires a global lock.
auto indexer = IIndexer::MakeClangIndexer();
IterationLoop loop;
while (loop.Next()) {
while (true) {
bool did_work = false;
{