diff options
| author | Alexander Kornienko <alexfh@google.com> | 2018-03-27 14:02:06 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2018-03-27 14:02:06 +0000 |
| commit | 156adaf89e4accbdc4d66e8e2e0125f90287daa5 (patch) | |
| tree | 4a10208420e88ae9f984fd5e27334d6760d883ce /clang/lib/Tooling | |
| parent | 20505898cbeff6fd5b179827b75c66a8a37cdbff (diff) | |
| download | bcm5719-llvm-156adaf89e4accbdc4d66e8e2e0125f90287daa5.tar.gz bcm5719-llvm-156adaf89e4accbdc4d66e8e2e0125f90287daa5.zip | |
Move a ref-counted pointer instead of copying it. NFC.
llvm-svn: 328623
Diffstat (limited to 'clang/lib/Tooling')
| -rw-r--r-- | clang/lib/Tooling/Tooling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index caaf3aa95b8..06440660615 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -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); |

