diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-03-19 15:00:03 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-03-19 15:00:03 +0000 |
commit | 09c5c39590caa92aa7ce660607a070ea275f5ad7 (patch) | |
tree | 10c56f663ec557d826063ae74950f67002169c13 /lib/Driver/Tools.cpp | |
parent | 3e280b58db5e7dc2bab736fa65af2b8157916726 (diff) |
Fix a regression where ':' in CPLUS_INCLUDE_PATH and friends would no longer separate paths.
This regressed in r152583. Also add a test to make sure it doesn't regress again.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 52ba4899fa..c38767d432 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -107,9 +107,9 @@ static void addDirectoryList(const ArgList &Args, CmdArgs.push_back("."); } else { CmdArgs.push_back(ArgName); - CmdArgs.push_back(Args.MakeArgString(Dirs.split(Delim).first)); + CmdArgs.push_back(Args.MakeArgString(Dirs.substr(0, Delim))); } - Dirs = Dirs.split(Delim).second; + Dirs = Dirs.substr(Delim + 1); } if (Dirs.empty()) { // Trailing colon. |