Skip to content

Commit aeaeade

Browse files
authored
Merge pull request github#12706 from github/alexdenisov/consider-non-swift-modules-as-lazy
Swift: consider declarations from non-swift modules as lazy
2 parents 434b1b3 + 069598c commit aeaeade

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swift/extractor/infra/SwiftDispatcher.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ class SwiftDispatcher {
265265
private:
266266
bool isLazyDeclaration(const swift::Decl& decl) {
267267
swift::ModuleDecl* module = decl.getModuleContext();
268-
return module->isBuiltinModule() || module->getName().str() == "__ObjC";
268+
return module->isBuiltinModule() || module->getName().str() == "__ObjC" ||
269+
module->isNonSwiftModule();
269270
}
270271

271272
template <typename T, typename = void>

0 commit comments

Comments
 (0)