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

cpu: Fixes some coverity issues (copy instead of move, const auto instead of const auto&). #2626

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davideberius
Copy link
Contributor

cpu: Fixes some coverity issues (copy instead of move, const auto instead of const auto&).

@davideberius davideberius requested review from a team as code owners February 7, 2025 19:46
@github-actions github-actions bot added the platform:cpu-x64 Intel64/AMD64 processors. Codeowner: @oneapi-src/onednn-cpu-x64 label Feb 7, 2025
@@ -196,7 +196,7 @@ struct ref_fused_convolution_fwd_t : public primitive_t {
arg_cache.append_inout_arg(
DNNL_ARG_FROM, sp_begin, from_md, true);
arg_cache.append_inout_arg(DNNL_ARG_TO, sp_end, to_md, false);
args_.push_back(arg_cache);
args_.push_back(std::move(arg_cache));

Copy link
Contributor

Choose a reason for hiding this comment

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

I did not see related coverity issue in the latest Coverity report. Could you point me out the CID or check if these changes are needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are a variety of CIDs represented here, but they are in the minor category. This particular one is 6925574.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:cpu-x64 Intel64/AMD64 processors. Codeowner: @oneapi-src/onednn-cpu-x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants