aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/SystemUtils.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-11-02 22:18:28 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-11-02 22:18:28 +0000
commited724fd43a2388f93460ca397c69948d346ec4db (patch)
tree927faf3eec44a3bbfeeeb99620cce50da12c9010 /lib/Support/SystemUtils.cpp
parentb20594fce621a0b80132a575113c15ad33afc5e9 (diff)
downloadexternal_llvm-ed724fd43a2388f93460ca397c69948d346ec4db.zip
external_llvm-ed724fd43a2388f93460ca397c69948d346ec4db.tar.gz
external_llvm-ed724fd43a2388f93460ca397c69948d346ec4db.tar.bz2
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.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp
index 8d70616..db61e75 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;