diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-10-16 11:17:08 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-10-16 11:17:08 +0000 |
commit | 0caee2762086f6f3bb5657c1d7798df6b4789337 (patch) | |
tree | 605a16c2096cc2ab04d437426ec5994713820362 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | 115a6ecdf173d116b253617ee529efac1ff6f2bb (diff) | |
download | llvm-0caee2762086f6f3bb5657c1d7798df6b4789337.zip llvm-0caee2762086f6f3bb5657c1d7798df6b4789337.tar.gz llvm-0caee2762086f6f3bb5657c1d7798df6b4789337.tar.bz2 |
RedirectingFileSystem::openFileForRead - replace bitwise & with boolean && to fix warning
Seems to be just a typo - now matches other instances which do something similar
llvm-svn: 374995
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r-- | llvm/lib/Support/VirtualFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index ac10baa..c390cb1 100644 --- a/llvm/lib/Support/VirtualFileSystem.cpp +++ b/llvm/lib/Support/VirtualFileSystem.cpp @@ -1764,7 +1764,7 @@ ErrorOr<std::unique_ptr<File>> RedirectingFileSystem::openFileForRead(const Twine &Path) { ErrorOr<RedirectingFileSystem::Entry *> E = lookupPath(Path); if (!E) { - if (shouldUseExternalFS() & + if (shouldUseExternalFS() && E.getError() == llvm::errc::no_such_file_or_directory) { return ExternalFS->openFileForRead(Path); } |