[llvm] r374995 - RedirectingFileSystem::openFileForRead - replace bitwise & with boolean && to fix warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 16 04:17:08 PDT 2019
Author: rksimon
Date: Wed Oct 16 04:17:08 2019
New Revision: 374995
URL: http://llvm.org/viewvc/llvm-project?rev=374995&view=rev
Log:
RedirectingFileSystem::openFileForRead - replace bitwise & with boolean && to fix warning
Seems to be just a typo - now matches other instances which do something similar
Modified:
llvm/trunk/lib/Support/VirtualFileSystem.cpp
Modified: llvm/trunk/lib/Support/VirtualFileSystem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/VirtualFileSystem.cpp?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- llvm/trunk/lib/Support/VirtualFileSystem.cpp (original)
+++ llvm/trunk/lib/Support/VirtualFileSystem.cpp Wed Oct 16 04:17:08 2019
@@ -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);
}
More information about the llvm-commits
mailing list