aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/SystemUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/SystemUtils.cpp')
-rw-r--r--lib/Support/SystemUtils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp
index c8b260c2e3..820e7cfbb1 100644
--- a/lib/Support/SystemUtils.cpp
+++ b/lib/Support/SystemUtils.cpp
@@ -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;
}