While here, also fix potential UB in MergeIndex.
Thanks Kadir for finding this!
Paths
| Differential D70225
[clangd] Simplify the code in XRefs ClosedPublic Authored by ilya-biryukov on Nov 14 2019, 1:42 AM.
Details
Summary While here, also fix potential UB in MergeIndex. Thanks Kadir for finding this!
Diff Detail
Event TimelineComment Actions Build result: pass - 60074 tests passed, 0 failed and 729 were skipped. Comment Actions Thanks, the title is a bit confusing, the modified code is about the index, not XRefs.
This revision is now accepted and ready to land.Nov 14 2019, 3:02 AM ilya-biryukov added inline comments.
Closed by commit rG5a9547b00709: [clangd] Simplify the code in Index::refs (authored by ilya-biryukov). · Explain WhyNov 14 2019, 5:49 AM This revision was automatically updated to reflect the committed changes. ilya-biryukov marked an inline comment as done.
Revision Contents
Diff 229292 clang-tools-extra/clangd/index/MemIndex.cpp
clang-tools-extra/clangd/index/Merge.cpp
clang-tools-extra/clangd/index/dex/Dex.cpp
|
I assume the potential UB is this code?