Skip to content

Commit 6a808d5

Browse files
committed
Fix clangd's IndexAction for FileSkipped API update
llvm-svn: 370004
1 parent 828a3a9 commit 6a808d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clangd/index/IndexAction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ struct IncludeGraphCollector : public PPCallbacks {
103103
}
104104

105105
// Sanity check to ensure we have already populated a skipped file.
106-
void FileSkipped(const FileEntry &SkippedFile, const Token &FilenameTok,
106+
void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
107107
SrcMgr::CharacteristicKind FileType) override {
108108
#ifndef NDEBUG
109-
auto URI = toURI(&SkippedFile);
109+
auto URI = toURI(&SkippedFile.getFileEntry());
110110
if (!URI)
111111
return;
112112
auto I = IG.try_emplace(*URI);

0 commit comments

Comments
 (0)