Skip to content

Commit 5d5c810

Browse files
authored
Merge pull request #1296 from kbenzie/benie/asan-move-not-copy
[ASAN] Fix copy instead of move
2 parents d216eb4 + 0ea9911 commit 5d5c810

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)