@@ -1762,8 +1762,8 @@ void ClangImporter::collectSubModuleNames(
1762
1762
1763
1763
// Look up the top-level module first.
1764
1764
clang::Module *clangModule = clangHeaderSearch.lookupModule (
1765
- path.front ().Item .str (), /* AllowSearch =*/ true ,
1766
- /* AllowExtraModuleMapSearch=*/ true );
1765
+ path.front ().Item .str (), /* ImportLoc =*/ clang::SourceLocation () ,
1766
+ /* AllowSearch= */ true , /* AllowExtraModuleMapSearch=*/ true );
1767
1767
if (!clangModule)
1768
1768
return ;
1769
1769
clang::Module *submodule = clangModule;
@@ -1791,9 +1791,9 @@ bool ClangImporter::canImportModule(ImportPath::Element moduleID,
1791
1791
// Look up the top-level module to see if it exists.
1792
1792
// FIXME: This only works with top-level modules.
1793
1793
auto &clangHeaderSearch = Impl.getClangPreprocessor ().getHeaderSearchInfo ();
1794
- clang::Module *clangModule =
1795
- clangHeaderSearch. lookupModule ( moduleID.Item .str (), /* AllowSearch =*/ true ,
1796
- /* AllowExtraModuleMapSearch=*/ true );
1794
+ clang::Module *clangModule = clangHeaderSearch. lookupModule (
1795
+ moduleID.Item .str (), /* ImportLoc =*/ clang::SourceLocation () ,
1796
+ /* AllowSearch= */ true , /* AllowExtraModuleMapSearch=*/ true );
1797
1797
if (!clangModule) {
1798
1798
return false ;
1799
1799
}
@@ -1870,8 +1870,8 @@ ModuleDecl *ClangImporter::Implementation::loadModuleClang(
1870
1870
1871
1871
// Look up the top-level module first, to see if it exists at all.
1872
1872
clang::Module *clangModule = clangHeaderSearch.lookupModule (
1873
- path.front ().Item .str (), /* AllowSearch =*/ true ,
1874
- /* AllowExtraModuleMapSearch=*/ true );
1873
+ path.front ().Item .str (), /* ImportLoc =*/ clang::SourceLocation () ,
1874
+ /* AllowSearch= */ true , /* AllowExtraModuleMapSearch=*/ true );
1875
1875
if (!clangModule)
1876
1876
return nullptr ;
1877
1877
0 commit comments