[cfe-commits] r154103 - /cfe/trunk/lib/Lex/HeaderSearch.cpp
Daniel Dunbar
daniel at zuster.org
Thu Apr 5 10:09:12 PDT 2012
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
More information about the cfe-commits
mailing list