[Clang] Use std::move in GlobalModuleIndex::readIndex. NFC

BitstreamCursors are heavy-weight objects that should not be passed by value.

Differential Revision: https://reviews.llvm.org/D123436
This commit is contained in:
Jun Zhang 2022-04-09 10:42:25 +08:00
parent c430f0f532
commit 218dcdad8a
No known key found for this signature in database
GPG Key ID: E19904830B621534
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ GlobalModuleIndex::readIndex(StringRef Path) {
return std::make_pair(nullptr, Res.takeError());
}
return std::make_pair(new GlobalModuleIndex(std::move(Buffer), Cursor),
return std::make_pair(new GlobalModuleIndex(std::move(Buffer), std::move(Cursor)),
llvm::Error::success());
}