diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index 7e8f93ab172ad..db7e531ed3137 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -690,7 +690,7 @@ OptionalFileEntryRef DirectoryLookup::DoFrameworkLookup( // If we found the header and are allowed to suggest a module, do so now. if (File && needModuleLookup(RequestingModule, SuggestedModule)) { // Find the framework in which this header occurs. - StringRef FrameworkPath = File->getFileEntry().getDir()->getName(); + StringRef FrameworkPath = File->getDir().getName(); bool FoundFramework = false; do { // Determine whether this directory exists.