File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -363,14 +363,15 @@ class SymbolCollector::HeaderFileURICache {
363
363
// named `Framework`, e.g. `NSObject.h` in framework `Foundation` would
364
364
// give <Foundation/Foundation.h> if the umbrella header exists, otherwise
365
365
// <Foundation/NSObject.h>.
366
- std::optional<llvm::StringRef> getFrameworkHeaderIncludeSpelling (
367
- const FileEntry *FE, llvm::StringRef Framework, HeaderSearch &HS) {
368
- auto Res = CachePathToFrameworkSpelling.try_emplace (FE->getName ());
366
+ std::optional<llvm::StringRef>
367
+ getFrameworkHeaderIncludeSpelling (FileEntryRef FE, llvm::StringRef Framework,
368
+ HeaderSearch &HS) {
369
+ auto Res = CachePathToFrameworkSpelling.try_emplace (FE.getName ());
369
370
auto *CachedHeaderSpelling = &Res.first ->second ;
370
371
if (!Res.second )
371
372
return llvm::StringRef (*CachedHeaderSpelling);
372
373
373
- auto HeaderPath = splitFrameworkHeaderPath (FE-> getName ());
374
+ auto HeaderPath = splitFrameworkHeaderPath (FE. getName ());
374
375
if (!HeaderPath) {
375
376
// Unexpected: must not be a proper framework header, don't cache the
376
377
// failure.
You can’t perform that action at this time.
0 commit comments