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.
Differential D56655
[clangd] Fix mac buildbot failure. AbandonedPublic Authored by hokein on Jan 14 2019, 1:31 AM.
Details
Summary Fix a use-after-free bug. The inner loop may add element to Dependencies Also fix an assertion, we have to take errors when llvm::Expected holds an
Diff Detail
Event TimelineHerald added subscribers: arphaman, jkorous, MaskRay and 2 others. · View Herald TranscriptJan 14 2019, 1:31 AM Comment Actions
Thanks! I have verified that the test failure is gone after your patch.
Revision Contents
Diff 181502 clangd/index/Background.cpp
|