Skip to content

[5.9] SIL: Don't skip lowering obsolete decls #66355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Jun 6, 2023

  • Explanation: When -unavailable-decl-optimization=complete is specified obsolete decls should be preserved because their symbols are still ABI since they are available to use when targeting deployment targets earlier than the obsoletion version.
  • Scope: Code generation for declarations marked obsolete with the @available attribute when the -unavailable-decl-optimization=complete flag is specified.
  • Issues: rdar://110268649
  • Risk: Low. The behavioral change is staged behind a compiler flag.
  • Testing: Regression test added
  • Reviewers: @artemcm, @nkcsgexi
  • Main branch PRs: SIL: Don't skip lowering obsolete decls #66353

When `-unavailable-decl-optimization=complete` is specified obsolete decls
should be preserved because their symbols are still ABI since they are
available to use when targeting deployment targets earlier than the obsoletion
version.

Resolves rdar://110268649
@tshortli
Copy link
Contributor Author

tshortli commented Jun 6, 2023

@swift-ci please test

@tshortli tshortli added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Jun 6, 2023
@tshortli tshortli marked this pull request as ready for review June 6, 2023 15:35
@tshortli tshortli requested a review from a team as a code owner June 6, 2023 15:35
@tshortli tshortli requested a review from nkcsgexi June 6, 2023 15:35
@tshortli tshortli changed the title SIL: Don't skip lowering obsolete decls [5.9] SIL: Don't skip lowering obsolete decls Jun 6, 2023
@tshortli tshortli merged commit cff9d10 into swiftlang:release/5.9 Jun 6, 2023
@tshortli tshortli deleted the avoid-stripping-obsolete-decls-5.9 branch June 6, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants