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

[SPIRV] Register all decls for a variable. #6969

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

s-perron
Copy link
Collaborator

Some variable can have multiple decls. In one case, there could be a
declaration of a const static member variable that is later defined. All
of these decls need to be in astDecls and associated with the same
variable.

The current code will only add the decl for the defintion. This leads to
problems when trying to find the variable for the declaration.

Fixes #6787

Some variable can have multiple decls. In one case, there could be a
declaration of a const static member variable that is later defined. All
of these decls need to be in astDecls and associated with the same
variable.

The current code will only add the decl for the defintion. This leads to
problems when trying to find the variable for the declaration.

Fixes microsoft#6787
@s-perron s-perron requested a review from a team as a code owner October 16, 2024 14:44
@s-perron s-perron enabled auto-merge (squash) October 17, 2024 22:06
@s-perron s-perron self-assigned this Oct 18, 2024
@s-perron s-perron merged commit 16e6727 into microsoft:main Oct 21, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[SPIR-V] found unregistered decl when using out-of-line static member + member function
3 participants