Skip to content

Commit e513aaf

Browse files
ianaylmaarquitos14
andauthored
[SYCL][NFC] Fix AUTO_CAUSES_COPY in Coverity (#14884)
Co-authored-by: Marcos Maronas <[email protected]>
1 parent bba3b93 commit e513aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ __SYCL_EXPORT context make_context(ur_native_handle_t NativeHandle,
102102
Properties.stype = UR_STRUCTURE_TYPE_CONTEXT_NATIVE_PROPERTIES;
103103
Properties.isNativeHandleOwned = false;
104104
std::vector<ur_device_handle_t> DeviceHandles;
105-
for (auto Dev : DeviceList) {
105+
for (const auto &Dev : DeviceList) {
106106
DeviceHandles.push_back(detail::getSyclObjImpl(Dev)->getHandleRef());
107107
}
108108
Plugin->call(urContextCreateWithNativeHandle, NativeHandle,

0 commit comments

Comments
 (0)