mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ABIChecker: removing the importation of SwiftOnoneSupport shouldn't be flagged as breakage
SwiftOnoneSupport is automatically imported in the debug mode. When diffing the release build with a baseline genearted in the debug build, we may hit this false positive.
This commit is contained in:
@@ -558,6 +558,11 @@ static void diagnoseRemovedDecl(const SDKNodeDecl *D) {
|
||||
if (Ctx.getOpts().SkipRemoveDeprecatedCheck &&
|
||||
D->isDeprecated())
|
||||
return;
|
||||
// Don't complain about removing importation of SwiftOnoneSupport.
|
||||
if (D->getKind() == SDKNodeKind::DeclImport &&
|
||||
D->getName() == "SwiftOnoneSupport") {
|
||||
return;
|
||||
}
|
||||
D->emitDiag(SourceLoc(), diag::removed_decl, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user