Skip to content

Commit 97efb4f

Browse files
[SYCL][NFC] Fix a Coverity hit in device_image_impl ctor (#20579)
1 parent 8690367 commit 97efb4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/device_image_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class device_image_impl
329329
device_image_impl(const std::string &Src, context Context,
330330
devices_range Devices, syclex::source_language Lang,
331331
include_pairs_t &&IncludePairsVec, private_tag)
332-
: MBinImage(Src), MContext(Context),
332+
: MBinImage(Src), MContext(std::move(Context)),
333333
MDevices(Devices.to<std::vector<device_impl *>>()),
334334
MState(bundle_state::ext_oneapi_source),
335335
MSpecConstsDefValBlob(getSpecConstsDefValBlob()),

0 commit comments

Comments
 (0)