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

Fix codegen for rvalue aggregate raw pointer to an adt with slice tail #3644

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

carolynzech
Copy link
Contributor

@carolynzech carolynzech commented Oct 24, 2024

Fix the codegen for a raw pointer to a dynamically-sized ADT. Traverse the type until we find the tail, which will either be a trait object or a slice, and generate the pointer accordingly.

Resolves #3638, #3615

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@github-actions github-actions bot added the Z-BenchCI Tag a PR to run benchmark CI label Oct 24, 2024
@carolynzech carolynzech marked this pull request as ready for review October 24, 2024 22:51
@carolynzech carolynzech requested a review from a team as a code owner October 24, 2024 22:51
Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

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

You might need to traverse the type, since the tail could be multiple levels down. E.g.:

Wrapper<Wrapper<[u8]>>

@carolynzech carolynzech marked this pull request as draft November 11, 2024 21:07
@carolynzech carolynzech marked this pull request as ready for review November 11, 2024 22:33
@carolynzech carolynzech marked this pull request as draft November 12, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-BenchCI Tag a PR to run benchmark CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: Kani compiler crashes due to incorrect handling of Adt with slice tail
2 participants