]> granicus.if.org Git - clang/commitdiff
Simplify.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 5 Apr 2012 17:09:11 +0000 (17:09 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 5 Apr 2012 17:09:11 +0000 (17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154103 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/HeaderSearch.cpp

index 39b49a3682d1d859d2c37b3145e7077bcae53220..383d9b478236eb3df4efd086fe480b8a983846ff 100644 (file)
@@ -305,8 +305,7 @@ const FileEntry *DirectoryLookup::DoFrameworkLookup(
 
     // 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