[PATCH] D92484: [clangd] Relations should not be accounted when computing backing storage size
Ilya Golovenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 2 07:08:17 PST 2020
ilya-golovenko created this revision.
Herald added subscribers: cfe-commits, usaxena95, kadircet, arphaman.
Herald added a project: clang.
ilya-golovenko requested review of this revision.
Herald added subscribers: MaskRay, ilya-biryukov.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D92484
Files:
clang-tools-extra/clangd/index/FileIndex.cpp
Index: clang-tools-extra/clangd/index/FileIndex.cpp
===================================================================
--- clang-tools-extra/clangd/index/FileIndex.cpp
+++ clang-tools-extra/clangd/index/FileIndex.cpp
@@ -348,8 +348,6 @@
StorageSize += Slab->bytes();
for (const auto &RefSlab : RefSlabs)
StorageSize += RefSlab->bytes();
- for (const auto &RelationSlab : RelationSlabs)
- StorageSize += RelationSlab->bytes();
// Index must keep the slabs and contiguous ranges alive.
switch (Type) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92484.308959.patch
Type: text/x-patch
Size: 526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201202/ed928025/attachment.bin>
More information about the cfe-commits
mailing list