Skip to content
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

Override flags that prevent package-cmo if allow-non-resilient-access is enabled #73717

Merged
merged 1 commit into from
May 21, 2024

Conversation

elsh
Copy link
Contributor

@elsh elsh commented May 17, 2024

Flags that skip non-inlinable function bodies prevent serializing decls when package-cmo is enabled.
This PR overrides such flag if allow-non-resilient-access that is a prerequisite of package-cmo is passed.

rdar://128413200

if (LangOpts.AllowNonResilientAccess)
Diags.diagnose(SourceLoc(), diag::warn_ignore_option_overriden_by,
"-experimental-skip-non-inlinable-function-bodies-without-types",
"-experimental-allow-non-resilient-access");
Copy link
Member

@nkcsgexi nkcsgexi May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests for these newly added warnings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it won't be merged without tests; this just unblocks things.

@elsh
Copy link
Contributor Author

elsh commented May 17, 2024

@swift-ci smoke test

@elsh
Copy link
Contributor Author

elsh commented May 20, 2024

@swift-ci smoke test

@elsh
Copy link
Contributor Author

elsh commented May 21, 2024

#73463
@swift-ci smoke test linux

@elsh
Copy link
Contributor Author

elsh commented May 21, 2024

@swift-ci smoke test linux

@elsh
Copy link
Contributor Author

elsh commented May 21, 2024

@swift-ci smoke test windows

@elsh elsh enabled auto-merge May 21, 2024 22:15
@elsh elsh merged commit 165ce9c into main May 21, 2024
3 checks passed
@elsh elsh deleted the elsh/override-flags branch May 21, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants