Skip to content

Commit 7f344cb

Browse files
committed
[ClangImporter] Pass SourceLocation to lookupModule
1 parent 9415bec commit 7f344cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,8 +1762,8 @@ void ClangImporter::collectSubModuleNames(
17621762

17631763
// Look up the top-level module first.
17641764
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);
17671767
if (!clangModule)
17681768
return;
17691769
clang::Module *submodule = clangModule;
@@ -1791,9 +1791,9 @@ bool ClangImporter::canImportModule(ImportPath::Element moduleID,
17911791
// Look up the top-level module to see if it exists.
17921792
// FIXME: This only works with top-level modules.
17931793
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);
17971797
if (!clangModule) {
17981798
return false;
17991799
}
@@ -1870,8 +1870,8 @@ ModuleDecl *ClangImporter::Implementation::loadModuleClang(
18701870

18711871
// Look up the top-level module first, to see if it exists at all.
18721872
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);
18751875
if (!clangModule)
18761876
return nullptr;
18771877

0 commit comments

Comments
 (0)