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-fuzz: Create a helper in fuzzerutil to reuse function type #3572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Some changes requested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good. I left a couple of comments on variable naming that I recommend making but don't insist on.
There's one thing I don't like about this: suppose that f's current type has only 1 user, but the new type for f already exists. In that case we add the new type to the module and change f so it has that type, but we leave the old type in the module even though it has no users.
I feel like it would be more natural to remove the old type in that case. What do you think @Vasniktel ? Perhaps I am over-thinking it - it would be unlikely to arise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes #3534.