Skip to content

Commit 0ea9911

Browse files
committed
[ASAN] Fix copy instead of move
1 parent 96cc58d commit 0ea9911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ur_result_t SanitizerInterceptor::allocateMemory(
149149
// For memory release
150150
{
151151
std::scoped_lock<ur_shared_mutex> Guard(ContextInfo->Mutex);
152-
ContextInfo->AllocatedUSMMap[AllocBegin] = AllocInfo;
152+
ContextInfo->AllocatedUSMMap[AllocBegin] = std::move(AllocInfo);
153153
}
154154

155155
context.logger.info(

0 commit comments

Comments
 (0)