From: Alexander Kornienko Date: Tue, 27 Mar 2018 14:02:06 +0000 (+0000) Subject: Move a ref-counted pointer instead of copying it. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=231c516e8c89165298f8ba2c5f4e76a815605886;p=clang Move a ref-counted pointer instead of copying it. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328623 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp index caaf3aa95b..0644066061 100644 --- a/lib/Tooling/Tooling.cpp +++ b/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);