swift-api-digester: avoid adding MissingMemberDecl to the json file

We explicitly ignore these ABI placeholders to fix an unreachable hit.
This commit is contained in:
Xi Ge
2019-05-22 18:04:31 -07:00
parent ad79bbaf86
commit f5853ba44f
2 changed files with 3 additions and 1 deletions

View File

@@ -1553,6 +1553,8 @@ SwiftDeclCollector::addMembersToRoot(SDKNode *Root, IterableDeclContext *Context
// All containing variables should have been handled.
} else if (isa<DestructorDecl>(Member)) {
// deinit has no impact.
} else if (isa<MissingMemberDecl>(Member)) {
// avoid adding MissingMemberDecl
} else {
llvm_unreachable("unhandled member decl kind.");
}