[llvm-commits] [llvm] r78184 - /llvm/trunk/tools/bugpoint/ToolRunner.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Aug 5 02:32:55 PDT 2009
Author: asl
Date: Wed Aug 5 04:32:53 2009
New Revision: 78184
URL: http://llvm.org/viewvc/llvm-project?rev=78184&view=rev
Log:
Pass user only if it's non-empty. Patch by Sandeep.
Modified:
llvm/trunk/tools/bugpoint/ToolRunner.cpp
Modified: llvm/trunk/tools/bugpoint/ToolRunner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ToolRunner.cpp?rev=78184&r1=78183&r2=78184&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/ToolRunner.cpp (original)
+++ llvm/trunk/tools/bugpoint/ToolRunner.cpp Wed Aug 5 04:32:53 2009
@@ -698,8 +698,10 @@
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());
More information about the llvm-commits
mailing list