Skip to content

Commit 0caee27

Browse files
committed
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
1 parent 115a6ec commit 0caee27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/VirtualFileSystem.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ ErrorOr<std::unique_ptr<File>>
17641764
RedirectingFileSystem::openFileForRead(const Twine &Path) {
17651765
ErrorOr<RedirectingFileSystem::Entry *> E = lookupPath(Path);
17661766
if (!E) {
1767-
if (shouldUseExternalFS() &
1767+
if (shouldUseExternalFS() &&
17681768
E.getError() == llvm::errc::no_such_file_or_directory) {
17691769
return ExternalFS->openFileForRead(Path);
17701770
}

0 commit comments

Comments
 (0)