Remove an unnecessary check and an unnecessary temporary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mikhail Glushenkov 2010-10-28 19:33:04 +00:00
parent c61c7549a8
commit 8a5ff478db

View File

@ -56,10 +56,9 @@ sys::Path llvm::FindExecutable(const std::string &ExeName,
// version of the program.
if (Result.isAbsolute()) {
Result = sys::Program::FindProgramByName(Result.str());
if (!Result.empty())
return Result;
return Result;
}
}
return sys::Path();
return Result;
}