]> granicus.if.org Git - llvm/commitdiff
RedirectingFileSystem::openFileForRead - replace bitwise & with boolean && to fix...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 11:17:08 +0000 (11:17 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 11:17:08 +0000 (11:17 +0000)
Seems to be just a typo - now matches other instances which do something similar

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374995 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/VirtualFileSystem.cpp

index ac10baa5c7ed3b5aa44bcdaa06699639987c3996..c390cb1b222750d97e86678c332d3afa519ee784 100644 (file)
@@ -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);
     }