diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-05 09:32:53 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-05 09:32:53 +0000 |
commit | 26964b6dc1fb1d3335b4c80c76bac7cb6103085c (patch) | |
tree | 57a4c32150e50d665a6d2d43c9b76702bff9b764 | |
parent | 86c006a971eb6fab6bd4923ff7ec1c0bc9c28f74 (diff) |
Pass user only if it's non-empty. Patch by Sandeep.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78184 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 81314a85c3..9180c53557 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/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()); |