forked from OSchip/llvm-project
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
This commit is contained in:
parent
115a6ecdf1
commit
0caee27620
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue