[clangd] Fix possible assertion fail in TUScheduler
authorSam McCall <sam.mccall@gmail.com>
Fri, 2 Jul 2021 13:55:43 +0000 (15:55 +0200)
committerSam McCall <sam.mccall@gmail.com>
Fri, 2 Jul 2021 13:57:39 +0000 (15:57 +0200)
commit50566947e98ea845030cfa3b4c199fb9a2052d53
tree25adb63af312f90aabb7929cdfacf4717bb415fe
parent7a2c1acd5fef32bdd2e374229f66ab047c7538b5
[clangd] Fix possible assertion fail in TUScheduler

BlockUntilIdle is supposed to return false if it fails.
If an intermediate step fails to clear the queue, we shouldn't
charge ahead and assert on the state of the queue.
clang-tools-extra/clangd/TUScheduler.cpp