summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/Tooling.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-03-26 22:32:06 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-03-26 22:32:06 +0000
commitdb8a742206749b2677c78d0125a21968a7df37b3 (patch)
tree91edaf8086e0428cd113bb6ca9b5e1e0b0ca0486 /clang/lib/Tooling/Tooling.cpp
parent1da7eac87c15662f808f69e260e3ec47923c28f6 (diff)
downloadbcm5719-llvm-db8a742206749b2677c78d0125a21968a7df37b3.tar.gz
bcm5719-llvm-db8a742206749b2677c78d0125a21968a7df37b3.zip
Basic: Return a reference from FileManager::getVirtualFileSystem, NFC
FileManager constructs a VFS in its constructor if it isn't passed one, and there's no way to reset it. Make that contract clear by returning a reference from its accessor. https://reviews.llvm.org/D59388 llvm-svn: 357038
Diffstat (limited to 'clang/lib/Tooling/Tooling.cpp')
-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 c82be38ca15..68760ef7569 100644
--- a/clang/lib/Tooling/Tooling.cpp
+++ b/clang/lib/Tooling/Tooling.cpp
@@ -301,7 +301,7 @@ bool ToolInvocation::run() {
DiagConsumer ? DiagConsumer : &DiagnosticPrinter, false);
const std::unique_ptr<driver::Driver> Driver(
- newDriver(&Diagnostics, BinaryName, Files->getVirtualFileSystem()));
+ newDriver(&Diagnostics, BinaryName, &Files->getVirtualFileSystem()));
// The "input file not found" diagnostics from the driver are useful.
// The driver is only aware of the VFS working directory, but some clients
// change this at the FileManager level instead.
OpenPOWER on IntegriCloud