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 bad arg indexing after array of struct in semantic assignment #6122

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

tex3d
Copy link
Contributor

@tex3d tex3d commented Jan 3, 2024

Semantic index assignment for flattened arguments would incorrectly increment the argument index after an array of struct field was encountered. It would misinterpret any array of struct as a basic type because it wasn't a struct type.

This fixes the bug by drilling into the array element before checking the type.

Fixes #6121

Semantic index assignment for flattened arguments would incorrectly increment the argument index after an array of struct field was encountered. It would misinterpret any array as a basic type because it wasn't a struct or matrix type.

This fixes the bug by drilling into the array element before checking the type.
@tex3d tex3d merged commit b5c5b52 into microsoft:main Jan 4, 2024
11 checks passed
@tex3d tex3d deleted the fix-sem-index-after-array branch January 4, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Assert/crash during semantic index assignment after array of struct
3 participants