Skip to content

CrossModuleOptimization: fix crash when importing a module as implementationOnly #35510

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
merged 1 commit into from
Jan 20, 2021

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Jan 20, 2021

If a function uses a type imported as implementationOnly (or similar), it cannot be serialized.

I added a new API in ModuleDecl (canBeUsedForCrossModuleOptimization), which performs this check.

https://bugs.swift.org/browse/SR-14006
rdar://72864719

Cherry-picked from #35472

…ntationOnly

If a function uses a type imported as implementationOnly (or similar), it cannot be serialized.

I added a new API in ModuleDecl (canBeUsedForCrossModuleOptimization), which performs this check.

rdar://72864719
@eeckstein eeckstein added the r5.4 label Jan 20, 2021
@eeckstein eeckstein requested a review from a team as a code owner January 20, 2021 11:08
@eeckstein
Copy link
Contributor Author

@swift-ci test

@tkremenek tkremenek merged commit 757853b into swiftlang:release/5.4 Jan 20, 2021
@eeckstein eeckstein deleted the fix-cmo-5.4 branch April 17, 2021 15:05
@AnthonyLatsis AnthonyLatsis added swift 5.4 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants