Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libsyclinterface/source/dpctl_sycl_device_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ DPCTLDeviceMgr_GetCachedContext(__dpctl_keep const DPCTLSyclDeviceRef DRef)
return nullptr;
}

auto entry = cache.find(*Device);
const auto &entry = cache.find(*Device);
if (entry != cache.end()) {
context *ContextPtr = nullptr;
try {
ContextPtr = new context(std::move(entry->second));
ContextPtr = new context(entry->second);
CRef = wrap<context>(ContextPtr);
} catch (std::exception const &e) {
error_handler(e, __FILE__, __func__, __LINE__);
Expand Down