Skip to content

Fix MCCAS issue with LEB and CVInline Fragments. #11224

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

Conversation

rastogishubham
Copy link

The 2100 branch took a snapshot of MC changes which reclassified LEB and CVInline fragments as Encoded Fragments. We need to add support for serializing both these fragment types in
MCDataFragmentMerger::emitMergedFragments. This patch accomplishes that task.

rdar://157494251

@cachemeifyoucan
Copy link

Is it possible to write a test for it?

@rastogishubham
Copy link
Author

@cachemeifyoucan I don't know how to generate an .ll file where it guarantees that the MCAssembler will contain an FT_LEB fragment and/or a FT_CVInlineLines fragment. Only thing I can think of is reducing the testcase that broke with delta and llvm-reduce to get something smaller. I can do that

The 2100 branch took a snapshot of MC changes which reclassified LEB
and CVInline fragments as Encoded Fragments. We need to add support for
serializing both these fragment types in
MCDataFragmentMerger::emitMergedFragments. This patch accomplishes that
task.

rdar://157494251
@rastogishubham
Copy link
Author

@cachemeifyoucan test added!

Copy link

@cachemeifyoucan cachemeifyoucan left a comment

Choose a reason for hiding this comment

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

LGTM

@cachemeifyoucan
Copy link

Remember to migrate test into next as well.

@rastogishubham rastogishubham merged commit a41673e into swiftlang:stable/21.x Aug 21, 2025
@rastogishubham rastogishubham deleted the FixMCCASStable21.x branch August 21, 2025 17:44
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