Skip to content

[Interpreter] Add initialization of array members #66172

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
merged 1 commit into from
Oct 20, 2023

Conversation

Dudeldu
Copy link
Contributor

@Dudeldu Dudeldu commented Sep 13, 2023

Currently, the interpreter does not initialize undef constants of aggregate types correctly (with respect to arrays).
The initialization of the array elements is skipped although it is valid to directly write to them. Instructions like
insertvalue {i32, [4 x i32]} undef, i32 1, 1, 2 therefore lead to a crash.
This is fixed by initializing array values just as fixed-size vectors or structs.

@cor3ntin cor3ntin added the clang:frontend Language frontend issues, e.g. anything involving "Sema" label Sep 13, 2023
@cor3ntin cor3ntin requested review from tbaederr and removed request for tbaederr September 13, 2023 06:42
@cor3ntin cor3ntin removed the clang:frontend Language frontend issues, e.g. anything involving "Sema" label Sep 13, 2023
@Dudeldu
Copy link
Contributor Author

Dudeldu commented Sep 18, 2023

Is there anyone who can review this, as it seems, there was nothing going on in that area for quite some time...

@Dudeldu
Copy link
Contributor Author

Dudeldu commented Sep 25, 2023

@yubingex007-a11y Can you review this? It seems like you did one of the most recent changes to the respective files

Copy link
Contributor

@lhames lhames left a comment

Choose a reason for hiding this comment

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

LGTM.

@Dudeldu
Copy link
Contributor Author

Dudeldu commented Oct 7, 2023

Thanks @lhames . I don’t have commit access, can you land this patch for me?

@yubingex007-a11y
Copy link
Contributor

@yubingex007-a11y Can you review this? It seems like you did one of the most recent changes to the respective files

i didn't see my commit in git log. can you invite someone else. i am not familiar with the code

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.

5 participants