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

[CIR][CIRGen] Support emitting memcpys for fields #1195

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

smeenai
Copy link
Collaborator

@smeenai smeenai commented Dec 3, 2024

Default assignment operator generation was failing because of memcpy
generation for fields being unsupported. Implement it following
CodeGen's example, as usual. Follow-ups will avoid emitting memcpys for
fields of trivial class types, and extend this to copy constructors as
well.

Fixes #1128

[ghstack-poisoned]
@smeenai
Copy link
Collaborator Author

smeenai commented Dec 3, 2024

@bcardosolopes heads up that this is a stack. Merging this PR (the base of the stack) will work as normal, but then I'll need to do some adjustments to be able to merge the others.

@smeenai smeenai merged commit baad05f into main Dec 3, 2024
7 checks passed
@smeenai smeenai deleted the users/smeenai/1/head branch December 3, 2024 19:11
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.

We can't copy trivial structs
2 participants