commit | fdba1308ee17366f4ec0251f2bcb4d4a1ea0fb19 | [log] [tgz] |
---|---|---|
author | Mikhail Glushenkov <foldr@codedgers.com> | Thu Oct 28 19:33:04 2010 +0000 |
committer | Mikhail Glushenkov <foldr@codedgers.com> | Thu Oct 28 19:33:04 2010 +0000 |
tree | 250c7cd93e1742e4ffc903fd5c7f22925d276362 | |
parent | d7faab5c9578cb66827cc9b44d548fed31d5b358 [diff] [blame] |
Remove an unnecessary check and an unnecessary temporary. llvm-svn: 117583
diff --git a/llvm/lib/Support/SystemUtils.cpp b/llvm/lib/Support/SystemUtils.cpp index c8b260c..820e7cf 100644 --- a/llvm/lib/Support/SystemUtils.cpp +++ b/llvm/lib/Support/SystemUtils.cpp
@@ -56,10 +56,9 @@ // 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; }