Skip to content

Commit 3b522c7

Browse files
committed
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.
1 parent 227c2ba commit 3b522c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/DriverTool/swift_api_digester_main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,11 @@ static void diagnoseRemovedDecl(const SDKNodeDecl *D) {
558558
if (Ctx.getOpts().SkipRemoveDeprecatedCheck &&
559559
D->isDeprecated())
560560
return;
561+
// Don't complain about removing importation of SwiftOnoneSupport.
562+
if (D->getKind() == SDKNodeKind::DeclImport &&
563+
D->getName() == "SwiftOnoneSupport") {
564+
return;
565+
}
561566
D->emitDiag(SourceLoc(), diag::removed_decl, false);
562567
}
563568

0 commit comments

Comments
 (0)