Skip to content

Commit 884f3db

Browse files
authored
swift-api-digester: Ignore the declarations that have no accessibility set. rdar://35375615 (swiftlang#12784)
1 parent 20a4882 commit 884f3db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,9 @@ static bool shouldIgnore(Decl *D) {
12821282
return true;
12831283
if (VD->getBaseName().empty())
12841284
return true;
1285+
// This shouldn't happen, being forgiving here.
1286+
if (!VD->hasAccess())
1287+
return true;
12851288
switch (VD->getFormalAccess()) {
12861289
case AccessLevel::Internal:
12871290
case AccessLevel::Private:

0 commit comments

Comments
 (0)