Skip to content

Commit 82e9380

Browse files
committed
[Sema] Force considering the __ObjC module as imported publicly
1 parent cbfa4b7 commit 82e9380

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/Module.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,6 +2442,9 @@ RestrictedImportKind SourceFile::getRestrictedImportKind(const ModuleDecl *modul
24422442
auto &imports = getASTContext().getImportCache();
24432443
RestrictedImportKind importKind = RestrictedImportKind::Implicit;
24442444

2445+
if (module->getName().str() == CLANG_HEADER_MODULE_NAME)
2446+
return RestrictedImportKind::None;
2447+
24452448
// Look at the imports of this source file.
24462449
for (auto &desc : *Imports) {
24472450
// Ignore implementation-only imports.

0 commit comments

Comments
 (0)