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 | |
| parent | 115a6ecdf173d116b253617ee529efac1ff6f2bb (diff) | |
| download | bcm5719-llvm-0caee2762086f6f3bb5657c1d7798df6b4789337.tar.gz bcm5719-llvm-0caee2762086f6f3bb5657c1d7798df6b4789337.zip | |
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
| -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 ac10baa5c7e..c390cb1b222 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); } |

