@@ -818,7 +818,7 @@ static bool isFrameworkStylePath(StringRef Path, bool &IsPrivateHeader,
818
818
static void
819
819
diagnoseFrameworkInclude (DiagnosticsEngine &Diags, SourceLocation IncludeLoc,
820
820
StringRef Includer, StringRef IncludeFilename,
821
- const FileEntry * IncludeFE, bool isAngled = false ,
821
+ FileEntryRef IncludeFE, bool isAngled = false ,
822
822
bool FoundByHeaderMap = false ) {
823
823
bool IsIncluderPrivateHeader = false ;
824
824
SmallString<128 > FromFramework, ToFramework;
@@ -828,7 +828,7 @@ diagnoseFrameworkInclude(DiagnosticsEngine &Diags, SourceLocation IncludeLoc,
828
828
return ;
829
829
bool IsIncludeePrivateHeader = false ;
830
830
bool IsIncludeeInFramework =
831
- isFrameworkStylePath (IncludeFE-> getName (), IsIncludeePrivateHeader,
831
+ isFrameworkStylePath (IncludeFE. getName (), IsIncludeePrivateHeader,
832
832
ToFramework, ToIncludeSpelling);
833
833
834
834
if (!isAngled && !FoundByHeaderMap) {
@@ -965,7 +965,7 @@ OptionalFileEntryRef HeaderSearch::LookupFile(
965
965
if (First) {
966
966
diagnoseFrameworkInclude (Diags, IncludeLoc,
967
967
IncluderAndDir.second .getName (), Filename,
968
- &FE-> getFileEntry () );
968
+ *FE );
969
969
return FE;
970
970
}
971
971
@@ -1119,9 +1119,9 @@ OptionalFileEntryRef HeaderSearch::LookupFile(
1119
1119
1120
1120
bool FoundByHeaderMap = !IsMapped ? false : *IsMapped;
1121
1121
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);
1125
1125
1126
1126
// Remember this location for the next lookup we do.
1127
1127
cacheLookupSuccess (CacheLookup, It, IncludeLoc);
0 commit comments