-
Notifications
You must be signed in to change notification settings - Fork 798
[SYCL] Fix coverity issues 11/11 2025 #20614
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
[SYCL] Fix coverity issues 11/11 2025 #20614
Conversation
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
| KData.getNDRDesc(), std::move(HostKernelPtr), | ||
| nullptr, // Kernel | ||
| nullptr, // KernelBundle | ||
| std::move(CGData), std::move(KData).getArgs(), |
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.
why did you remove the std::move(KData).getArgs()?
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.
KData is used in the following arguments. That's a use-after-move.
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.
but we do not move the KData itself here. Such syntax forces calling of the right overload of getArgs() that does the move of args. With your change it will be a copy instead of move.
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.
Ah, I was not aware of that syntax... And I suppose neither is Coverity. 😆
I still have concerns regarding it, but I can revert it here and we can discuss it in #20617 (comment).
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
|
@vinser52 - Have all your concerns been addressed? |
This commit makes the following changes to sate Coverity:
*_implclasses.