From ed724fd43a2388f93460ca397c69948d346ec4db Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Tue, 2 Nov 2010 22:18:28 +0000 Subject: [PATCH] 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 --- lib/Support/SystemUtils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp index 8d70616421f..db61e7569cd 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;