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

Implement support for zero-initialized builtin type allocation #1304

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andykaylor
Copy link
Collaborator

This handles initialization of array new allocations in the simple case
where the entire allocated memory block can be initialized with a memset
to zero.

This handles initialization of array new allocations in the simple case
where the entire allocated memory block can be initialized with a memset
to zero.
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

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

LGTM after minor nit

CleanupDeactivationScope deactivation(*this);
bool pushedCleanup = false;
Copy link
Member

Choose a reason for hiding this comment

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

This seems unused, if you are intending to just keep track of lacking support for cleanup, using assert(!cir::MissingFeatures::requiresCleanups()); is one option.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're right, it is unused. The place where it would be used is covered by an "NYI" so I'll just remove it until it's needed.

Copy link
Member

Choose a reason for hiding this comment

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

sounds good

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