]> granicus.if.org Git - clang/commitdiff
Fix gcc -Wparentheses warning.
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Fri, 21 Feb 2014 07:23:53 +0000 (07:23 +0000)
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Fri, 21 Feb 2014 07:23:53 +0000 (07:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201840 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/FileManager.cpp

index 08f19fb2006e224b5211e68318664b192b9e1680..efc08aac96de5f2ffaaa30196f0719730f94c055 100644 (file)
@@ -306,7 +306,7 @@ const FileEntry *FileManager::getFile(StringRef Filename, bool openFile,
     return 0;
   }
 
-  assert(openFile || !F && "undesired open file");
+  assert((openFile || !F) && "undesired open file");
 
   // It exists.  See if we have already opened a file with the same inode.
   // This occurs when one dir is symlinked to another, for example.