summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-08-05 09:32:53 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-08-05 09:32:53 +0000
commit0c3f8d5f5372f7ebf4e754e70a52a5e3df3f445d (patch)
tree29fd9c92eec7f64d8f8e6c61d4d2ac80630860af
parent7cbff91e624a7682401e99125cfa74decdf05cae (diff)
downloadbcm5719-llvm-0c3f8d5f5372f7ebf4e754e70a52a5e3df3f445d.tar.gz
bcm5719-llvm-0c3f8d5f5372f7ebf4e754e70a52a5e3df3f445d.zip
Pass user only if it's non-empty. Patch by Sandeep.
llvm-svn: 78184
-rw-r--r--llvm/tools/bugpoint/ToolRunner.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp
index 81314a85c38..9180c53557c 100644
--- a/llvm/tools/bugpoint/ToolRunner.cpp
+++ b/llvm/tools/bugpoint/ToolRunner.cpp
@@ -698,8 +698,10 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
else {
ProgramArgs.push_back(RemoteClientPath.c_str());
ProgramArgs.push_back(RemoteHost.c_str());
- ProgramArgs.push_back("-l");
- ProgramArgs.push_back(RemoteUser.c_str());
+ if (!RemoteUser.empty()) {
+ ProgramArgs.push_back("-l");
+ ProgramArgs.push_back(RemoteUser.c_str());
+ }
if (!RemotePort.empty()) {
ProgramArgs.push_back("-p");
ProgramArgs.push_back(RemotePort.c_str());
OpenPOWER on IntegriCloud