Author: ddunbar
Date: Thu Apr  5 12:09:11 2012
New Revision: 154103

URL: http://llvm.org/viewvc/llvm-project?rev=154103&view=rev
Log:
Simplify.

Modified:
    cfe/trunk/lib/Lex/HeaderSearch.cpp

Modified: cfe/trunk/lib/Lex/HeaderSearch.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/HeaderSearch.cpp?rev=154103&r1=154102&r2=154103&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/HeaderSearch.cpp (original)
+++ cfe/trunk/lib/Lex/HeaderSearch.cpp Thu Apr  5 12:09:11 2012
@@ -305,8 +305,7 @@
 
     // If the framework dir doesn't exist, we fail.
     // FIXME: It's probably more efficient to query this with FileMgr.getDir.
-    bool Exists;
-    if (llvm::sys::fs::exists(FrameworkName.str(), Exists) || !Exists)
+    if (!llvm::sys::fs::exists(FrameworkName.str()))
       return 0;
 
     // Otherwise, if it does, remember that this is the right direntry for this


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to