aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-16 11:17:08 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-16 11:17:08 +0000
commit0caee2762086f6f3bb5657c1d7798df6b4789337 (patch)
tree605a16c2096cc2ab04d437426ec5994713820362 /llvm/lib/Support/VirtualFileSystem.cpp
parent115a6ecdf173d116b253617ee529efac1ff6f2bb (diff)
downloadllvm-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.cpp2
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);
}