summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit4fb337560c845e5c44a758bee2ede7610da35e25 (patch)
tree5a4925ea5b95fa0a49eef08cff919562b272761b /llvm/lib/Support/SystemUtils.cpp
parentdec87e10fd90134fcbf934ae277f376491892e3e (diff)
downloadbcm5719-llvm-4fb337560c845e5c44a758bee2ede7610da35e25.tar.gz
bcm5719-llvm-4fb337560c845e5c44a758bee2ede7610da35e25.zip
Revert r118057, this is better fixed in appendSuffix itself.
llvm-svn: 118088
Diffstat (limited to 'llvm/lib/Support/SystemUtils.cpp')
-rw-r--r--llvm/lib/Support/SystemUtils.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Support/SystemUtils.cpp b/llvm/lib/Support/SystemUtils.cpp
index 8d70616421f..db61e7569cd 100644
--- a/llvm/lib/Support/SystemUtils.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud