Skip to content

[SYCL] Coverity: prepare data to move#22103

Merged
KornevNikita merged 2 commits into
intel:syclfrom
KornevNikita:fix-cov-issue-5
May 26, 2026
Merged

[SYCL] Coverity: prepare data to move#22103
KornevNikita merged 2 commits into
intel:syclfrom
KornevNikita:fix-cov-issue-5

Conversation

@KornevNikita
Copy link
Copy Markdown
Contributor

@KornevNikita KornevNikita commented May 22, 2026

We move KData and then use it's content to initialize another variables. Extract the data in advance.
closes #21917

We move KData and then use it's content to initialize another variables.
Extract the data in advance.
@KornevNikita KornevNikita requested a review from a team as a code owner May 22, 2026 17:24
@KornevNikita
Copy link
Copy Markdown
Contributor Author

@sergey-semenov could you take a look please

Comment thread sycl/source/detail/queue_impl.cpp Outdated
KData.extractArgsAndReqsFromLambda();

// Extract data to move KData
auto KernelCacheConfig = KData.getKernelCacheConfig();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nitpick: I think it makes sense to specify the type (ur_kernel_cache_config_t) explicitly here to make it clear that the copy is trivial.

@KornevNikita KornevNikita merged commit 959cda6 into intel:sycl May 26, 2026
1 check passed
@KornevNikita KornevNikita deleted the fix-cov-issue-5 branch May 26, 2026 12:31
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.

555642 Using a moved object in queue_impl.cpp

2 participants