swift-module-digester: include underscored and unavailable decls when checking stdlib abi stability.

This commit is contained in:
Xi Ge
2018-10-03 14:53:35 -07:00
parent 58b3c2173f
commit d36fc85535

View File

@@ -1216,11 +1216,12 @@ SwiftDeclCollector::shouldIgnore(Decl *D, const Decl* Parent) {
if (isa<TypeAliasDecl>(VD))
return true;
}
} else {
if (D->isPrivateStdlibDecl(false))
return true;
if (AvailableAttr::isUnavailable(D))
return true;
}
if (D->isPrivateStdlibDecl(false))
return true;
if (AvailableAttr::isUnavailable(D))
return true;
if (isa<ConstructorDecl>(D))
return false;
if (auto VD = dyn_cast<ValueDecl>(D)) {