If the Program name was NULL then all further output sent to std::cerr was
suppressed.
llvm-svn: 29477
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 08b6fcb..f7fbef6 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -616,7 +616,9 @@
if (ArgName[0] == 0)
std::cerr << HelpStr; // Be nice for positional arguments
else
- std::cerr << ProgramName << ": for the -" << ArgName;
+ std::cerr << (ProgramName ? ProgramName : "***")
+ << ": for the -" << ArgName;
+
std::cerr << " option: " << Message << "\n";
return true;
}