nridge created this revision. nridge added a reviewer: gribozavr. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. Herald added a project: clang.
Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D60040 Files: clang-tools-extra/clangd/index/Ref.h Index: clang-tools-extra/clangd/index/Ref.h =================================================================== --- clang-tools-extra/clangd/index/Ref.h +++ clang-tools-extra/clangd/index/Ref.h @@ -86,7 +86,7 @@ size_t bytes() const { return sizeof(*this) + Arena.getTotalMemory() + - sizeof(value_type) * Refs.size(); + sizeof(value_type) * Refs.capacity(); } /// RefSlab::Builder is a mutable container that can 'freeze' to RefSlab.
Index: clang-tools-extra/clangd/index/Ref.h =================================================================== --- clang-tools-extra/clangd/index/Ref.h +++ clang-tools-extra/clangd/index/Ref.h @@ -86,7 +86,7 @@ size_t bytes() const { return sizeof(*this) + Arena.getTotalMemory() + - sizeof(value_type) * Refs.size(); + sizeof(value_type) * Refs.capacity(); } /// RefSlab::Builder is a mutable container that can 'freeze' to RefSlab.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits