mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-21 01:06:46 +00:00
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:
parent
c61c7549a8
commit
8a5ff478db
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user