This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix mac buildbot failure.
AbandonedPublic

Authored by hokein on Jan 14 2019, 1:31 AM.

Details

Reviewers
kadircet
Summary

Fix a use-after-free bug. The inner loop may add element to Dependencies
vector, which may cause memory reallocation of the vector.

Also fix an assertion, we have to take errors when llvm::Expected holds an
error.

Event Timeline

hokein created this revision.Jan 14 2019, 1:31 AM
hokein updated this revision to Diff 181502.Jan 14 2019, 1:33 AM

remove unrelated blank changes.

hokein abandoned this revision.Jan 14 2019, 6:06 AM

https://reviews.llvm.org/D56656 has landed to fix that issue

Thanks! I have verified that the test failure is gone after your patch.