File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -395,14 +395,15 @@ void TBDGenVisitor::visitProtocolDecl(ProtocolDecl *PD) {
395
395
addSymbol (LinkEntity::forProtocolDescriptor (PD));
396
396
397
397
#ifndef NDEBUG
398
- // There's no (currently) relevant information about members of a protocol
399
- // at individual protocols, each conforming type has to handle them
400
- // individually. Let's assert this fact:
398
+ // There's no (currently) relevant information about members of a protocol at
399
+ // individual protocols, each conforming type has to handle them individually
400
+ // (NB. anything within an active IfConfigDecls also appears outside). Let's
401
+ // assert this fact:
401
402
for (auto *member : PD->getMembers ()) {
402
403
auto isExpectedKind =
403
404
isa<TypeAliasDecl>(member) || isa<AssociatedTypeDecl>(member) ||
404
405
isa<AbstractStorageDecl>(member) || isa<PatternBindingDecl>(member) ||
405
- isa<AbstractFunctionDecl>(member);
406
+ isa<AbstractFunctionDecl>(member) || isa<IfConfigDecl>(member) ;
406
407
assert (isExpectedKind &&
407
408
" unexpected member of protocol during TBD generation" );
408
409
}
You can’t perform that action at this time.
0 commit comments