We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9cd6ca commit 0bedd20Copy full SHA for 0bedd20
lib/IRGen/GenDecl.cpp
@@ -449,13 +449,15 @@ void IRGenModule::emitSourceFile(SourceFile &SF) {
449
// Emit types and other global decls.
450
for (auto *decl : SF.getTopLevelDecls())
451
emitGlobalDecl(decl);
452
+ for (auto *decl : SF.getHoistedDecls())
453
+ emitGlobalDecl(decl);
454
for (auto *localDecl : SF.LocalTypeDecls)
455
emitGlobalDecl(localDecl);
456
for (auto *opaqueDecl : SF.getOpaqueReturnTypeDecls())
457
maybeEmitOpaqueTypeDecl(opaqueDecl);
458
459
SF.collectLinkLibraries([this](LinkLibrary linkLib) {
- this->addLinkLibrary(linkLib);
460
+ this->addLinkLibrary(linkLib);
461
});
462
463
if (ObjCInterop)
0 commit comments