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 | f535a985ca53168d3e3fd38bdbef2677c01f2ef4 (patch) | |
| tree | 90af654afc9ebb3ea006721ddd1c7162658143bf /lib/Lex/HeaderSearch.cpp | |
| parent | a82354563ebf9ed03b32ff5405e312425e6c1cad (diff) | |
| download | clang-f535a985ca53168d3e3fd38bdbef2677c01f2ef4.tar.gz clang-f535a985ca53168d3e3fd38bdbef2677c01f2ef4.tar.bz2 clang-f535a985ca53168d3e3fd38bdbef2677c01f2ef4.tar.xz | |
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/HeaderSearch.cpp')
| -rw-r--r-- | lib/Lex/HeaderSearch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Lex/HeaderSearch.cpp b/lib/Lex/HeaderSearch.cpp index 39b49a3682..383d9b4782 100644 --- a/lib/Lex/HeaderSearch.cpp +++ b/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 |
