summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-06-26 20:59:39 +0000
committerJustin Bogner <mail@justinbogner.com>2014-06-26 20:59:39 +0000
commitf05a499339ff235fc6247593ee30338d089f8cfd (patch)
treebf21babb1147566a780d1e1747e27f6be58bb58f
parent5aaf2e729bb944b8f7261d360854da4bdbda2626 (diff)
downloadbcm5719-llvm-f05a499339ff235fc6247593ee30338d089f8cfd.tar.gz
bcm5719-llvm-f05a499339ff235fc6247593ee30338d089f8cfd.zip
Driver: Fix a misleading comment and test for what it actually did
llvm-svn: 211806
-rw-r--r--clang/lib/Driver/Driver.cpp2
-rw-r--r--clang/test/Driver/crash-report.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index ca1fc4e79e5..e3b53a9983f 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -533,7 +533,7 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
Diag(clang::diag::note_drv_command_failed_diag_msg)
<< "Error generating run script: " + Script + " " + Err;
} else {
- // Append the new filename with correct preprocessed suffix.
+ // Replace the original filename with the preprocessed one.
size_t I, E;
I = Cmd.find("-main-file-name ");
assert (I != std::string::npos && "Expected to find -main-file-name");
diff --git a/clang/test/Driver/crash-report.c b/clang/test/Driver/crash-report.c
index f3c2e472e41..da1ff950fb9 100644
--- a/clang/test/Driver/crash-report.c
+++ b/clang/test/Driver/crash-report.c
@@ -36,3 +36,4 @@ FOO
// CHECKSH-NOT: -internal-isystem /tmp/
// CHECKSH-NOT: -internal-externc-isystem /tmp/
// CHECKSH-NOT: -dwarf-debug-flags
+// CHECKSH: crash-report-{{[^ ]*}}.c
OpenPOWER on IntegriCloud