Skip to content

Commit cbbfd9a

Browse files
abhishek-kaushik22aokblast
authored andcommitted
[NFC][CGData] Use std::move in lazyDeserialize call (llvm#164558)
Use `std::move` for shared_ptr in `lazyDeserialize` call to avoid extra refcount ops
1 parent 60903d2 commit cbbfd9a

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)