diff options
author | Juergen Ributzka <juergen@apple.com> | 2017-03-10 21:23:29 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2017-03-10 21:23:29 +0000 |
commit | 4a25956838388665bf132a8a9218a43a982a1d30 (patch) | |
tree | 9415b2dfef4a5047fc454fcbaa35710c03197222 /clang/lib/Basic/VirtualFileSystem.cpp | |
parent | fd958fca0b4c2244463dd3e7bd688c8da9af2554 (diff) | |
download | bcm5719-llvm-4a25956838388665bf132a8a9218a43a982a1d30.tar.gz bcm5719-llvm-4a25956838388665bf132a8a9218a43a982a1d30.zip |
[VFS] Remove the Path variable from RealFSDirIter. NFC.
This variable is set, but never used.
llvm-svn: 297511
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
-rw-r--r-- | clang/lib/Basic/VirtualFileSystem.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp index 63348724b1c..f5db717866a 100644 --- a/clang/lib/Basic/VirtualFileSystem.cpp +++ b/clang/lib/Basic/VirtualFileSystem.cpp @@ -238,11 +238,9 @@ IntrusiveRefCntPtr<FileSystem> vfs::getRealFileSystem() { namespace { class RealFSDirIter : public clang::vfs::detail::DirIterImpl { - std::string Path; llvm::sys::fs::directory_iterator Iter; public: - RealFSDirIter(const Twine &_Path, std::error_code &EC) - : Path(_Path.str()), Iter(Path, EC) { + RealFSDirIter(const Twine &Path, std::error_code &EC) : Iter(Path, EC) { if (!EC && Iter != llvm::sys::fs::directory_iterator()) { llvm::sys::fs::file_status S; EC = Iter->status(S); |