Skip to content

Commit c4fd965

Browse files
[SYCL] Fix copy instead of move Coverity hit (#18825)
1 parent e42e936 commit c4fd965

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/include/sycl/ext/oneapi/experimental/async_alloc/memory_pool.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ class __SYCL_EXPORT memory_pool {
9090
protected:
9191
std::shared_ptr<detail::memory_pool_impl> impl;
9292

93-
memory_pool(std::shared_ptr<detail::memory_pool_impl> Impl) : impl(Impl) {}
93+
memory_pool(std::shared_ptr<detail::memory_pool_impl> Impl)
94+
: impl(std::move(Impl)) {}
9495

9596
template <class Obj>
9697
friend const decltype(Obj::impl) &

0 commit comments

Comments
 (0)