]> granicus.if.org Git - clang/commitdiff
Fix a silly bug introduced in r142133.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 16 Oct 2011 11:05:04 +0000 (11:05 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 16 Oct 2011 11:05:04 +0000 (11:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142134 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 2ce0d8082e4ebd8aa2d8831a48905014e8bb8ed6..825a83d8b8d82d37332ba11677f0dc008dd47518 100644 (file)
@@ -1694,13 +1694,13 @@ private:
     // 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[] = {
       "/../../..",