summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2018-03-27 14:02:06 +0000
committerAlexander Kornienko <alexfh@google.com>2018-03-27 14:02:06 +0000
commit156adaf89e4accbdc4d66e8e2e0125f90287daa5 (patch)
tree4a10208420e88ae9f984fd5e27334d6760d883ce /clang/lib/Tooling
parent20505898cbeff6fd5b179827b75c66a8a37cdbff (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud