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