Skip to content

Commit 6003a44

Browse files
[NFC][CGData] Use std::move in lazyDeserialize call (#164558)
Use `std::move` for shared_ptr in `lazyDeserialize` call to avoid extra refcount ops
1 parent b474be6 commit 6003a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CGData/CodeGenDataReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Error IndexedCodeGenDataReader::read() {
125125
FunctionMapRecord.setReadStableFunctionMapNames(
126126
IndexedCodeGenDataReadFunctionMapNames);
127127
if (IndexedCodeGenDataLazyLoading)
128-
FunctionMapRecord.lazyDeserialize(SharedDataBuffer,
128+
FunctionMapRecord.lazyDeserialize(std::move(SharedDataBuffer),
129129
Header.StableFunctionMapOffset);
130130
else
131131
FunctionMapRecord.deserialize(Ptr);

0 commit comments

Comments
 (0)