swift-module-digester: don't blindly include initializer decls. rdar://45418572

This commit is contained in:
Xi Ge
2018-10-25 14:28:18 -07:00
parent da4fc05a0e
commit fcc4bf5be2
5 changed files with 0 additions and 277 deletions

View File

@@ -1324,8 +1324,6 @@ SDKContext::shouldIgnore(Decl *D, const Decl* Parent) const {
if (AvailableAttr::isUnavailable(D))
return true;
}
if (isa<ConstructorDecl>(D))
return false;
if (auto VD = dyn_cast<ValueDecl>(D)) {
if (VD->getBaseName().empty())
return true;