summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-10-21 18:03:08 +0000
committerJustin Bogner <mail@justinbogner.com>2014-10-21 18:03:08 +0000
commit33bdbc66d3ee912e8f50f194a40e5a8237a4ba26 (patch)
tree1d350ad9eafc39be0d3775e4497f96b048943023 /clang/lib/Driver/Driver.cpp
parentdd86f33902071c39b3ec2ab8c572df32beb8b29b (diff)
downloadbcm5719-llvm-33bdbc66d3ee912e8f50f194a40e5a8237a4ba26.tar.gz
bcm5719-llvm-33bdbc66d3ee912e8f50f194a40e5a8237a4ba26.zip
Driver: Quote the command in crash reproduction scripts.
This fixes crash report generation when filenames have spaces. It also removes an awkward workaround that quoted *some* arguments when generating crash reports. llvm-svn: 220307
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index baf154fbc58..ccefbd8c364 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -547,7 +547,7 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
Diag(clang::diag::note_drv_command_failed_diag_msg)
<< "Error generating run script: " + Script + " " + EC.message();
} else {
- Cmd.Print(ScriptOS, "\n", /*Quote=*/false, &CrashInfo);
+ Cmd.Print(ScriptOS, "\n", /*Quote=*/true, &CrashInfo);
Diag(clang::diag::note_drv_command_failed_diag_msg) << Script;
}
Diag(clang::diag::note_drv_command_failed_diag_msg)
OpenPOWER on IntegriCloud