Skip to content

[SYCL] Omit TemplatedDecl from int-footer for a VarTemplateDecl #4108

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
Jul 15, 2021

Conversation

erichkeane
Copy link
Contributor

The hook we had always added the VarDecl when it was visited, however
when evaluating a VarTemplateDecl, Clang creates a VarDecl to represent
the declaration as a child of the VarTemplateDecl. We don't need to
capture it in our collection since the VarTemplateSpecializationDecl
will provide the info we need.

If we DON'T do this, we end up having 2 specializations for the
specialization_id, one of which is invalid.

The hook we had always added the VarDecl when it was visited, however
when evaluating a VarTemplateDecl, Clang creates a VarDecl to represent
the declaration as a child of the VarTemplateDecl. We don't need to
capture it in our collection since the VarTemplateSpecializationDecl
will provide the info we need.

If we DON'T do this, we end up having 2 specializations for the
specialization_id, one of which is invalid.
Copy link
Contributor

@AaronBallman AaronBallman left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

LGTM!

@AaronBallman
Copy link
Contributor

The Jenkins failure appears to be an unrelated timeout, so merging.

@AaronBallman AaronBallman merged commit f71a1d5 into intel:sycl Jul 15, 2021
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.

4 participants