Skip to content

Commit 4b06991

Browse files
RKSimonJDevlieghere
authored andcommitted
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 (cherry picked from commit 0caee27)
1 parent 886854a commit 4b06991

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
@@ -1762,7 +1762,7 @@ ErrorOr<std::unique_ptr<File>>
17621762
RedirectingFileSystem::openFileForRead(const Twine &Path) {
17631763
ErrorOr<RedirectingFileSystem::Entry *> E = lookupPath(Path);
17641764
if (!E) {
1765-
if (shouldUseExternalFS() &
1765+
if (shouldUseExternalFS() &&
17661766
E.getError() == llvm::errc::no_such_file_or_directory) {
17671767
return ExternalFS->openFileForRead(Path);
17681768
}

0 commit comments

Comments
 (0)