Skip to content

Commit 8fab234

Browse files
[SYCL][NFC] Fix copy instead of move Coverity hits (#19175)
1 parent 6151eed commit 8fab234

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/source/detail/memory_manager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,8 +1050,8 @@ void MemoryManager::memset_2d_usm(void *DstMem, queue_impl &Queue, size_t Pitch,
10501050
sycl::make_error_code(errc::invalid),
10511051
"NULL pointer argument in 2D memory memset operation.");
10521052
MemoryManager::fill_2d_usm(DstMem, Queue, Pitch, Width, Height,
1053-
{static_cast<unsigned char>(Value)}, DepEvents,
1054-
OutEvent);
1053+
{static_cast<unsigned char>(Value)},
1054+
std::move(DepEvents), OutEvent);
10551055
}
10561056

10571057
static void
@@ -1151,7 +1151,7 @@ getOrBuildProgramForDeviceGlobal(queue_impl &Queue,
11511151
device_image_plain DeviceImage =
11521152
PM.getDeviceImageFromBinaryImage(&Img, Context, Device);
11531153
device_image_plain BuiltImage =
1154-
PM.build(std::move(DeviceImage), {Device}, {});
1154+
PM.build(std::move(DeviceImage), {std::move(Device)}, {});
11551155
return getSyclObjImpl(BuiltImage)->get_ur_program_ref();
11561156
}
11571157

0 commit comments

Comments
 (0)