[clang-tools-extra] 2d539d7 - [clangd] Relation slabs should not be accounted when computing backing storage size

Ilya Golovenko via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 05:58:28 PST 2020


Author: Ilya Golovenko
Date: 2020-12-03T16:56:53+03:00
New Revision: 2d539d78549fbe26144d5ff491de338413bd99d3

URL: https://github.com/llvm/llvm-project/commit/2d539d78549fbe26144d5ff491de338413bd99d3
DIFF: https://github.com/llvm/llvm-project/commit/2d539d78549fbe26144d5ff491de338413bd99d3.diff

LOG: [clangd] Relation slabs should not be accounted when computing backing storage size

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D92484

Added: 
    

Modified: 
    clang-tools-extra/clangd/index/FileIndex.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/index/FileIndex.cpp b/clang-tools-extra/clangd/index/FileIndex.cpp
index 9a376df8dfec..1ccfb4485638 100644
--- a/clang-tools-extra/clangd/index/FileIndex.cpp
+++ b/clang-tools-extra/clangd/index/FileIndex.cpp
@@ -366,8 +366,6 @@ FileSymbols::buildIndex(IndexType Type, DuplicateHandling DuplicateHandle,
     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) {


        


More information about the cfe-commits mailing list