Fix a silly bug introduced in r142133.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142134 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 2ce0d80..825a83d 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -1694,13 +1694,13 @@
// up to the lib directory.
const std::string Suffixes[] = {
"/gcc/" + CandidateTriple.str(),
- CandidateTriple.str() + "/gcc/" + CandidateTriple.str(),
+ "/" + CandidateTriple.str() + "/gcc/" + CandidateTriple.str(),
// Ubuntu has a strange mis-matched pair of triples that this happens to
// match.
// FIXME: It may be worthwhile to generalize this and look for a second
// triple.
- CandidateTriple.str() + "/gcc/i686-linux-gnu"
+ "/" + CandidateTriple.str() + "/gcc/i686-linux-gnu"
};
const std::string InstallSuffixes[] = {
"/../../..",