forked from OSchip/llvm-project
[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:
parent
c430f0f532
commit
218dcdad8a
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue