aboutsummaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support')
-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 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;