Skip to content

[6.2] MandatoryPerformanceOptimizations: make sure to handle de-serialized vtable methods #81974

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
Jun 5, 2025

Conversation

eeckstein
Copy link
Contributor

  • Explanation: This fixes a compiler crash in IRGen in Embedded Swift. This can happen when the MandatoryPerformanceOptimizations pass de-serializes a function from another module and this function allocates a class. Then the de-serialized vtable must be handled, too. Otherwise the vtable is not available in IRGen and IRGen crashes. This fixes a wasm build problem.
  • Risk: Low. It's only affecting Embedded Swift.
  • Testing: Tested by lit tests.
  • Issue: rdar://152311945
  • Reviewer: @MaxDesiatov
  • Main branch PR: MandatoryPerformanceOptimizations: make sure to handle de-serialized vtable methods #81897

…vtable methods

When de-serializing a function and this function allocates a class, the methods of the de-serialized vtable must be handled, too.

Fixes an IRGen crash
rdar://152311945
@eeckstein eeckstein requested a review from a team as a code owner June 4, 2025 10:28
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein requested a review from MaxDesiatov June 4, 2025 10:29
@MaxDesiatov MaxDesiatov requested a review from bnbarham June 4, 2025 10:29
@eeckstein
Copy link
Contributor Author

@swift-ci test macos

@eeckstein eeckstein enabled auto-merge June 4, 2025 16:08
@eeckstein eeckstein merged commit 916e96d into swiftlang:release/6.2 Jun 5, 2025
5 checks passed
@eeckstein eeckstein deleted the fix-mpo-6.2 branch June 5, 2025 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants