]> granicus.if.org Git - clang/commitdiff
Add back the leading space when printing commands with -###
authorReid Kleckner <reid@kleckner.net>
Thu, 7 Aug 2014 00:05:00 +0000 (00:05 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 7 Aug 2014 00:05:00 +0000 (00:05 +0000)
This was an unintentional behavior change from r214924.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215044 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Job.cpp

index fdf730d881b0e3d40fe04e2ae9d231f52b1021b7..7d6d0bb78b287a757014bf8bcfb7397428528274 100644 (file)
@@ -96,6 +96,7 @@ static void PrintArg(raw_ostream &OS, const char *Arg, bool Quote) {
 void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote,
                     bool CrashReport) const {
   // Always quote the exe.
+  OS << ' ';
   PrintArg(OS, Executable, /*Quote=*/true);
 
   for (size_t i = 0, e = Arguments.size(); i < e; ++i) {