Move a ref-counted pointer instead of copying it. NFC.

llvm-svn: 328623
This commit is contained in:
Alexander Kornienko 2018-03-27 14:02:06 +00:00
parent 20505898cb
commit 156adaf89e
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ ClangTool::ClangTool(const CompilationDatabase &Compilations,
IntrusiveRefCntPtr<vfs::FileSystem> BaseFS)
: Compilations(Compilations), SourcePaths(SourcePaths),
PCHContainerOps(std::move(PCHContainerOps)),
OverlayFileSystem(new vfs::OverlayFileSystem(BaseFS)),
OverlayFileSystem(new vfs::OverlayFileSystem(std::move(BaseFS))),
InMemoryFileSystem(new vfs::InMemoryFileSystem),
Files(new FileManager(FileSystemOptions(), OverlayFileSystem)) {
OverlayFileSystem->pushOverlay(InMemoryFileSystem);