forked from OSchip/llvm-project
Driver: Fix two bad typos that were breaking the buildbots.
llvm-svn: 140682
This commit is contained in:
parent
7f01c7b5f1
commit
fcfb53d5a5
|
@ -1523,8 +1523,7 @@ std::string Driver::GetProgramPath(const char *Name, const ToolChain &TC,
|
|||
if (!P.empty())
|
||||
return P.str();
|
||||
|
||||
P = llvm::sys::Path(llvm::sys::Program::FindProgramByName(
|
||||
TargetSpecificExecutable));
|
||||
P = llvm::sys::Path(llvm::sys::Program::FindProgramByName(Name));
|
||||
if (!P.empty())
|
||||
return P.str();
|
||||
|
||||
|
|
|
@ -1519,7 +1519,7 @@ static std::string findGCCBaseLibDir(const Driver &D,
|
|||
bool Exists;
|
||||
llvm::SmallVector<std::string, 8> Paths(D.PrefixDirs.begin(),
|
||||
D.PrefixDirs.end());
|
||||
Paths.push_back("/usr/");
|
||||
Paths.push_back("/usr/lib/");
|
||||
const std::string *Triples[] = {&GccTriple, &D.DefaultHostTriple};
|
||||
for (llvm::SmallVector<std::string, 8>::const_iterator it = Paths.begin(),
|
||||
ie = Paths.end(); it != ie; ++it) {
|
||||
|
|
Loading…
Reference in New Issue