[cfe-commits] r120542 - /cfe/trunk/lib/Frontend/InitHeaderSearch.cpp

Dan Gohman gohman at apple.com
Tue Nov 30 18:59:44 PST 2010


Author: djg
Date: Tue Nov 30 20:59:44 2010
New Revision: 120542

URL: http://llvm.org/viewvc/llvm-project?rev=120542&view=rev
Log:
Don't check the isysroot path for Path::isValid(); if the user has
specified a syntactically invalid path, it's better to let the OS
diagnose the problem than to silently skip it.

Modified:
    cfe/trunk/lib/Frontend/InitHeaderSearch.cpp

Modified: cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitHeaderSearch.cpp?rev=120542&r1=120541&r2=120542&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitHeaderSearch.cpp (original)
+++ cfe/trunk/lib/Frontend/InitHeaderSearch.cpp Tue Nov 30 20:59:44 2010
@@ -110,7 +110,6 @@
 
   // Handle isysroot.
   if (Group == System && !IgnoreSysRoot && MappedPath.isAbsolute() &&
-      IncludeSysroot.isValid() &&
       IncludeSysroot != llvm::sys::Path::GetRootDirectory()) {
     MappedPathStorage.clear();
     MappedPathStr =





More information about the cfe-commits mailing list