[cfe-commits] r47646 - /cfe/trunk/Driver/clang.cpp

Chris Lattner sabre at nondot.org
Tue Feb 26 15:46:22 PST 2008


Author: lattner
Date: Tue Feb 26 17:46:22 2008
New Revision: 47646

URL: http://llvm.org/viewvc/llvm-project?rev=47646&view=rev
Log:
fix an interaction between -isystem . and isysroot.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=47646&r1=47645&r2=47646&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Tue Feb 26 17:46:22 2008
@@ -698,8 +698,6 @@
     // handle things like C:\ right, nor win32 \\network\device\blah.
     if (isysroot.size() != 1 || isysroot[0] != '/') // Add isysroot if present.
       MappedPath.append(isysroot.begin(), isysroot.end());
-    if (Path[0] != '/')  // If in the system group, add a /.
-      MappedPath.push_back('/');
   }
   
   MappedPath.append(Path.begin(), Path.end());





More information about the cfe-commits mailing list