Skip to content

Commit 13e5faf

Browse files
committed
[clangd] Fix buildbot breakages from stemming from 64366d4
1 parent 53b6a16 commit 13e5faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,15 +943,15 @@ void SymbolCollector::finish() {
943943
// FIXME: Get rid of this once include-cleaner has support for system
944944
// headers.
945945
if (auto Canonical =
946-
HeaderFileURIs->mapCanonical(H.physical()->getName());
946+
HeaderFileURIs->mapCanonical(H.physical().getName());
947947
!Canonical.empty())
948948
SpellingIt->second = Canonical;
949949
// For physical files, prefer URIs as spellings might change
950950
// depending on the translation unit.
951951
else if (tooling::isSelfContainedHeader(H.physical(), SM,
952952
PP->getHeaderSearchInfo()))
953953
SpellingIt->second =
954-
HeaderFileURIs->toURI(H.physical()->getLastRef());
954+
HeaderFileURIs->toURI(H.physical());
955955
} else {
956956
SpellingIt->second = include_cleaner::spellHeader(
957957
{H, PP->getHeaderSearchInfo(),

0 commit comments

Comments
 (0)