Skip to content

Commit a46fced

Browse files
committed
On 'canImport' of Clang submodules of modules with an umbrella header, attempt to infer the submodule
Resolves rdar://124163264
1 parent 1752b48 commit a46fced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,7 @@ ModuleDecl *ClangImporter::Implementation::loadModuleClang(
21872187
// Verify that the submodule exists.
21882188
clang::Module *submodule = clangModule;
21892189
for (auto &component : path.getSubmodulePath()) {
2190-
submodule = submodule->findSubmodule(component.Item.str());
2190+
submodule = submodule->findOrInferSubmodule(component.Item.str());
21912191

21922192
// Special case: a submodule named "Foo.Private" can be moved to a top-level
21932193
// module named "Foo_Private". Clang has special support for this.

0 commit comments

Comments
 (0)