@@ -818,7 +818,7 @@ static bool isFrameworkStylePath(StringRef Path, bool &IsPrivateHeader,
818818static void
819819diagnoseFrameworkInclude (DiagnosticsEngine &Diags, SourceLocation IncludeLoc,
820820 StringRef Includer, StringRef IncludeFilename,
821- const FileEntry * IncludeFE, bool isAngled = false ,
821+ FileEntryRef IncludeFE, bool isAngled = false ,
822822 bool FoundByHeaderMap = false ) {
823823 bool IsIncluderPrivateHeader = false ;
824824 SmallString<128 > FromFramework, ToFramework;
@@ -828,7 +828,7 @@ diagnoseFrameworkInclude(DiagnosticsEngine &Diags, SourceLocation IncludeLoc,
828828 return ;
829829 bool IsIncludeePrivateHeader = false ;
830830 bool IsIncludeeInFramework =
831- isFrameworkStylePath (IncludeFE-> getName (), IsIncludeePrivateHeader,
831+ isFrameworkStylePath (IncludeFE. getName (), IsIncludeePrivateHeader,
832832 ToFramework, ToIncludeSpelling);
833833
834834 if (!isAngled && !FoundByHeaderMap) {
@@ -965,7 +965,7 @@ OptionalFileEntryRef HeaderSearch::LookupFile(
965965 if (First) {
966966 diagnoseFrameworkInclude (Diags, IncludeLoc,
967967 IncluderAndDir.second .getName (), Filename,
968- &FE-> getFileEntry () );
968+ *FE );
969969 return FE;
970970 }
971971
@@ -1119,9 +1119,9 @@ OptionalFileEntryRef HeaderSearch::LookupFile(
11191119
11201120 bool FoundByHeaderMap = !IsMapped ? false : *IsMapped;
11211121 if (!Includers.empty ())
1122- diagnoseFrameworkInclude (
1123- Diags, IncludeLoc, Includers.front ().second .getName (), Filename,
1124- & File-> getFileEntry () , isAngled, FoundByHeaderMap);
1122+ diagnoseFrameworkInclude (Diags, IncludeLoc,
1123+ Includers.front ().second .getName (), Filename,
1124+ * File, isAngled, FoundByHeaderMap);
11251125
11261126 // Remember this location for the next lookup we do.
11271127 cacheLookupSuccess (CacheLookup, It, IncludeLoc);
0 commit comments