diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-02 22:18:28 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-02 22:18:28 +0000 |
commit | ed724fd43a2388f93460ca397c69948d346ec4db (patch) | |
tree | 927faf3eec44a3bbfeeeb99620cce50da12c9010 /lib/Support/SystemUtils.cpp | |
parent | b20594fce621a0b80132a575113c15ad33afc5e9 (diff) |
Revert r118057, this is better fixed in appendSuffix itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/SystemUtils.cpp')
-rw-r--r-- | lib/Support/SystemUtils.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp index 8d70616421..db61e7569c 100644 --- a/lib/Support/SystemUtils.cpp +++ b/lib/Support/SystemUtils.cpp @@ -47,9 +47,7 @@ sys::Path llvm::FindExecutable(const std::string &ExeName, if (!Result.isEmpty()) { Result.appendComponent(ExeName); - StringRef EXESuffix = sys::Path::GetEXESuffix(); - if (!EXESuffix.empty()) - Result.appendSuffix(EXESuffix); + Result.appendSuffix(sys::Path::GetEXESuffix()); } return Result; |