Skip to content

Add a check for serialized_for_package in MandatoryInlining#73715

Closed
elsh wants to merge 1 commit intomainfrom
elsh/mand-inline
Closed

Add a check for serialized_for_package in MandatoryInlining#73715
elsh wants to merge 1 commit intomainfrom
elsh/mand-inline

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.

@elsh elsh requested review from aschwaighofer and slavapestov May 17, 2024 17:52
@nkcsgexi
Copy link
Contributor

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.

2 participants