Skip to content

Commit 423cdd5

Browse files
[SYCL] Fix copy instead of move Coverity hits (#20300)
1 parent 704d56e commit 423cdd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@ __SYCL_EXPORT void HandlerAccess::preProcess(handler &CGH,
23142314
F(AuxHandler);
23152315
auto E = AuxHandler.finalize();
23162316
if (EventNeeded)
2317-
CGH.depends_on(E);
2317+
CGH.depends_on(std::move(E));
23182318
}
23192319
__SYCL_EXPORT void HandlerAccess::postProcess(handler &CGH,
23202320
type_erased_cgfo_ty F) {
@@ -2331,7 +2331,7 @@ __SYCL_EXPORT void HandlerAccess::postProcess(handler &CGH,
23312331
PostProcessHandler.impl->MAuxiliaryResources = CGH.impl->MAuxiliaryResources;
23322332
auto E = CGH.finalize();
23332333
if (!InOrder)
2334-
PostProcessHandler.depends_on(E);
2334+
PostProcessHandler.depends_on(std::move(E));
23352335
F(PostProcessHandler);
23362336
swap(CGH, PostProcessHandler);
23372337
}

0 commit comments

Comments
 (0)