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

Malloc with initializer & memset #17

Merged
merged 3 commits into from
May 17, 2023
Merged

Malloc with initializer & memset #17

merged 3 commits into from
May 17, 2023

Conversation

Saloed
Copy link
Collaborator

@Saloed Saloed commented May 16, 2023

Add malloc with initial values

fromDstIdx = ctx.mkSizeExpr(0),
toDstIdx = contentLength,
guard = ctx.trueExpr
)
}
Copy link
Member

Choose a reason for hiding this comment

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

I think, we also need to update array length. Something like this

Suggested change
}
writeArrayLength(ref, contentLength, type)
}

Copy link
Member

@sergeypospelov sergeypospelov left a comment

Choose a reason for hiding this comment

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

Looks good to me

@Saloed Saloed merged commit 683d270 into main May 17, 2023
1 check passed
@Saloed Saloed deleted the saloed/memset branch May 17, 2023 15:41
@sergeypospelov sergeypospelov mentioned this pull request May 18, 2023
24 tasks
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.

None yet

2 participants