Simplify.

llvm-svn: 154103
This commit is contained in:
Daniel Dunbar 2012-04-05 17:09:11 +00:00
parent 3a7efa2240
commit 328001a14a
1 changed files with 1 additions and 2 deletions

View 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