diff options
| author | Kadir Cetinkaya <kadircet@google.com> | 2019-05-09 15:07:53 +0000 |
|---|---|---|
| committer | Kadir Cetinkaya <kadircet@google.com> | 2019-05-09 15:07:53 +0000 |
| commit | 40177ac6d1d567f8c001bc6b4bfbad4ea56c36e6 (patch) | |
| tree | eea07e0d9acd8318968d9b8e932c488f6571779a /clang-tools-extra/clangd/index/Serialization.cpp | |
| parent | 0268083329c3a27d330b8520087320c17e65e007 (diff) | |
| download | bcm5719-llvm-40177ac6d1d567f8c001bc6b4bfbad4ea56c36e6.tar.gz bcm5719-llvm-40177ac6d1d567f8c001bc6b4bfbad4ea56c36e6.zip | |
[clangd] Bump index version and get rid of wrong assertion
Summary:
After rL360344, BackgroundIndex expects symbols with zero refcounts.
Therefore existing index files are no longer valid.
Assertion regarding finding target of a reference was wrong, since
background-index might still be going on or we might've loaded only some part of
the shards and might be missing the declaring shards for the symbol.
Reviewers: ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61734
llvm-svn: 360349
Diffstat (limited to 'clang-tools-extra/clangd/index/Serialization.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/index/Serialization.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/index/Serialization.cpp b/clang-tools-extra/clangd/index/Serialization.cpp index 62eb3fcdf37..12993eb631c 100644 --- a/clang-tools-extra/clangd/index/Serialization.cpp +++ b/clang-tools-extra/clangd/index/Serialization.cpp @@ -370,7 +370,7 @@ readRefs(Reader &Data, llvm::ArrayRef<llvm::StringRef> Strings) { // The current versioning scheme is simple - non-current versions are rejected. // If you make a breaking change, bump this version number to invalidate stored // data. Later we may want to support some backward compatibility. -constexpr static uint32_t Version = 9; +constexpr static uint32_t Version = 10; llvm::Expected<IndexFileIn> readRIFF(llvm::StringRef Data) { auto RIFF = riff::readFile(Data); |

