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

Add a check for serialized_for_package in MandatoryInlining #73715

Closed
wants to merge 1 commit into from

Conversation

elsh
Copy link
Contributor

@elsh elsh commented May 17, 2024

If the caller is [serialized] due to explicit @inlinable but
the callee was [serialized_for_package] due to package-cmo, the
callee is [serialized] and might contain loadable types, which
is normally disallowed. This check prevents such loadable types
from being inlined. This check is also added to PerformanceInlinerUtils.

@nkcsgexi
Copy link
Member

Great catch! Can we add some tests for it?

@elsh
Copy link
Contributor Author

elsh commented May 17, 2024

@swift-ci smoke test

@elsh
Copy link
Contributor Author

elsh commented May 17, 2024

Great catch! Can we add some tests for it?

will do, however this is a temporary fix; will have a proper fix that involves a lot more code change.

@elsh
Copy link
Contributor Author

elsh commented May 24, 2024

Handled in the upcoming PR pending #73754.

@elsh elsh closed this May 24, 2024
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

2 participants