diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-04-05 17:09:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-04-05 17:09:11 +0000 |
commit | 328001a14a888e1277d76434618fe22375f99aa7 (patch) | |
tree | 269ccd55c31d17fd5f4697f68eed2c133dfab733 /clang/lib/Lex/HeaderSearch.cpp | |
parent | 3a7efa22405dd41893f0f1633a2e308bf041305a (diff) | |
download | bcm5719-llvm-328001a14a888e1277d76434618fe22375f99aa7.tar.gz bcm5719-llvm-328001a14a888e1277d76434618fe22375f99aa7.zip |
Simplify.
llvm-svn: 154103
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index 39b49a3682d..383d9b47823 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -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 |