diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -690,7 +690,7 @@ // 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.