From 2d539d78549fbe26144d5ff491de338413bd99d3 Mon Sep 17 00:00:00 2001 From: Ilya Golovenko Date: Thu, 3 Dec 2020 16:55:11 +0300 Subject: [PATCH] [clangd] Relation slabs should not be accounted when computing backing storage size Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D92484 --- clang-tools-extra/clangd/index/FileIndex.cpp | 2 -- 1 file changed, 2 deletions(-) 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) {