diff options
-rw-r--r-- | clangd/CodeComplete.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clangd/CodeComplete.cpp b/clangd/CodeComplete.cpp index 6fc6e48b..f8a4a459 100644 --- a/clangd/CodeComplete.cpp +++ b/clangd/CodeComplete.cpp @@ -1463,7 +1463,7 @@ private: llvm::DenseMap<size_t, size_t> BundleLookup; auto AddToBundles = [&](const CodeCompletionResult *SemaResult, const Symbol *IndexResult, - const RawIdentifier *IdentifierResult = nullptr) { + const RawIdentifier *IdentifierResult) { CompletionCandidate C; C.SemaResult = SemaResult; C.IndexResult = IndexResult; @@ -1502,12 +1502,12 @@ private: }; // Emit all Sema results, merging them with Index results if possible. for (auto &SemaResult : SemaResults) - AddToBundles(&SemaResult, CorrespondingIndexResult(SemaResult)); + AddToBundles(&SemaResult, CorrespondingIndexResult(SemaResult), nullptr); // Now emit any Index-only results. for (const auto &IndexResult : IndexResults) { if (UsedIndexResults.count(&IndexResult)) continue; - AddToBundles(/*SemaResult=*/nullptr, &IndexResult); + AddToBundles(/*SemaResult=*/nullptr, &IndexResult, nullptr); } // Emit identifier results. for (const auto &Ident : IdentifierResults) |