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 clang-tidy-19 errors #8509

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Fix clang-tidy-19 errors #8509

merged 1 commit into from
Dec 16, 2024

Conversation

steven-johnson
Copy link
Contributor

No description provided.

@steven-johnson steven-johnson merged commit 90af423 into main Dec 16, 2024
5 of 17 checks passed
@steven-johnson steven-johnson deleted the srj/clang-tidy-19 branch December 16, 2024 19:40
@abadams
Copy link
Member

abadams commented Dec 20, 2024

I think the change in HalideBuffer.h here caused #8534

It's supposed to take src by value because make_with_shape_of_helper mutates src.buf.dim in-place.

@abadams
Copy link
Member

abadams commented Dec 20, 2024

A nice reminder that we should always wait for the tests to go green, even on trivial PRs.

@steven-johnson
Copy link
Contributor Author

I'm confused about this diagnosis -- if it's mutating it in-place then how is it compiling now (since it's a const ref)?

@abadams
Copy link
Member

abadams commented Dec 20, 2024

It's taking a copy of a pointer member that points to storage contained within the same class (the dims array), and mutating things through that pointer.

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.

3 participants