Skip to content

Commit 8e5044a

Browse files
authored
Merge pull request #64164 from DougGregor/revert-top-level-visit-aux
Revert "Also visit auxiliary declarations of top-level decls"
2 parents 8059c99 + fa817f3 commit 8e5044a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

lib/SIL/IR/SILSymbolVisitor.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,6 @@ class SILSymbolVisitorImpl : public ASTVisitor<SILSymbolVisitorImpl> {
395395
addMainIfNecessary(file);
396396

397397
for (auto D : decls) {
398-
D->visitAuxiliaryDecls([&](Decl *decl) {
399-
if (Ctx.getOpts().LinkerDirectivesOnly && !requiresLinkerDirective(decl))
400-
return;
401-
402-
visit(decl);
403-
});
404-
405398
if (Ctx.getOpts().LinkerDirectivesOnly && !requiresLinkerDirective(D))
406399
continue;
407400

test/Macros/option_set.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -plugin-path -Xfrontend %swift-host-lib-dir/plugins)
1+
// RUN: %target-run-simple-swift(-Xfrontend -plugin-path -Xfrontend %swift-host-lib-dir/plugins -emit-tbd -emit-tbd-path %t.tbd)
22
// REQUIRES: executable_test
33
// REQUIRES: OS=macosx
44

0 commit comments

Comments
 (0)