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) {


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to