Skip to content

Commit 90fff00

Browse files
authored
use map subscript operator instead of at (#256)
When copying information about a kernel for a call to clCloneKernel we don't want to throw an exception if the kernel information is not found.
1 parent f9e59e1 commit 90fff00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intercept/src/intercept.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6459,7 +6459,7 @@ void CLIntercept::addKernelInfo(
64596459
{
64606460
std::lock_guard<std::mutex> lock(m_Mutex);
64616461

6462-
m_KernelInfoMap[ kernel ] = m_KernelInfoMap.at( source_kernel );
6462+
m_KernelInfoMap[ kernel ] = m_KernelInfoMap[ source_kernel ];
64636463
}
64646464

64656465
///////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)