Skip to content

Commit f02f5b2

Browse files
committed
[SILSymbolVisitor] Skip local conformance entries from pre-expanded macros.
(cherry picked from commit b137c6c)
1 parent 35b7642 commit f02f5b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SIL/IR/SILSymbolVisitor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ class SILSymbolVisitorImpl : public ASTVisitor<SILSymbolVisitorImpl> {
238238
void addConformances(const IterableDeclContext *IDC) {
239239
for (auto conformance :
240240
IDC->getLocalConformances(ConformanceLookupKind::NonInherited)) {
241+
if (conformance->getSourceKind() == ConformanceEntryKind::PreMacroExpansion)
242+
continue;
243+
241244
auto protocol = conformance->getProtocol();
242245
if (Ctx.getOpts().PublicSymbolsOnly &&
243246
getDeclLinkage(protocol) != FormalLinkage::PublicUnique)

0 commit comments

Comments
 (0)