From 156adaf89e4accbdc4d66e8e2e0125f90287daa5 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Tue, 27 Mar 2018 14:02:06 +0000 Subject: [PATCH] Move a ref-counted pointer instead of copying it. NFC. llvm-svn: 328623 --- clang/lib/Tooling/Tooling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index caaf3aa95b80..06440660615a 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -361,7 +361,7 @@ ClangTool::ClangTool(const CompilationDatabase &Compilations, IntrusiveRefCntPtr 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);