Skip to content

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.

4 participants