r201840 - Fix gcc -Wparentheses warning.

Patrik Hagglund patrik.h.hagglund at ericsson.com
Thu Feb 20 23:23:54 PST 2014


Author: patha
Date: Fri Feb 21 01:23:53 2014
New Revision: 201840

URL: http://llvm.org/viewvc/llvm-project?rev=201840&view=rev
Log:
Fix gcc -Wparentheses warning.

Modified:
    cfe/trunk/lib/Basic/FileManager.cpp

Modified: cfe/trunk/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileManager.cpp?rev=201840&r1=201839&r2=201840&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileManager.cpp (original)
+++ cfe/trunk/lib/Basic/FileManager.cpp Fri Feb 21 01:23:53 2014
@@ -306,7 +306,7 @@ const FileEntry *FileManager::getFile(St
     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.





More information about the cfe-commits mailing list