Skip to content

Commit 7616656

Browse files
authored
[UR] Use std::move so vector is not copied in validation layer RefRuntimeInfo struct (#18362)
Fixes #18341
1 parent aed8b0b commit 7616656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unified-runtime/source/loader/layers/validation/ur_leak_check.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct RefCountContext {
2727

2828
RefRuntimeInfo(int64_t refCount, std::type_index type,
2929
std::vector<BacktraceLine> backtrace)
30-
: refCount(refCount), type(type), backtrace(backtrace) {}
30+
: refCount(refCount), type(type), backtrace(std::move(backtrace)) {}
3131
};
3232

3333
enum RefCountUpdateType {

0 commit comments

Comments
 (0)