swift-module-digester: exclude TypeAliasDecl entirely when checking ABI stability.

This commit is contained in:
Xi Ge
2018-09-26 11:15:48 -07:00
parent 212530465c
commit 67c7d377a5
3 changed files with 5 additions and 36 deletions

View File

@@ -1158,6 +1158,10 @@ SwiftDeclCollector::shouldIgnore(Decl *D, const Decl* Parent) {
return true;
if (VD->getBaseName().empty())
return true;
// Exclude type alias decls because they should have no impact on ABI.
if (isa<TypeAliasDecl>(VD) && Ctx.checkingABI())
return true;
switch (VD->getFormalAccess()) {
case AccessLevel::Internal:
case AccessLevel::Private: