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 #8534 #8535

Merged
merged 2 commits into from
Dec 23, 2024
Merged

Fix #8534 #8535

merged 2 commits into from
Dec 23, 2024

Conversation

abadams
Copy link
Member

@abadams abadams commented Dec 20, 2024

No description provided.

This needs to take src by value, because the helper function mutates
ones of its members in-place.
@@ -1991,9 +1991,11 @@ class Buffer {
/** Make a buffer with the same shape and memory nesting order as
* another buffer. It may have a different type. */
template<typename T2, int D2, int S2>
static Buffer<T, Dims, InClassDimStorage> make_with_shape_of(const Buffer<T2, D2, S2> &src,
static Buffer<T, Dims, InClassDimStorage> make_with_shape_of(Buffer<T2, D2, S2> src,
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll probably need to add a NOLINT comment here once we move to clang-tidy-19 but that can (and should) be done in the other CL since exact placement and syntax may be a bit fussy: https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics

@abadams abadams merged commit 9c3e6de into main Dec 23, 2024
18 of 19 checks passed
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.

2 participants