]> granicus.if.org Git - clang/commitdiff
Driver: Fix a misleading comment and test for what it actually did
authorJustin Bogner <mail@justinbogner.com>
Thu, 26 Jun 2014 20:59:39 +0000 (20:59 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 26 Jun 2014 20:59:39 +0000 (20:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211806 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp
test/Driver/crash-report.c

index ca1fc4e79e5bed2317b78fa3cc034f0853c27b42..e3b53a9983f307e70f35abff3d67d863726e86f6 100644 (file)
@@ -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");
index f3c2e472e4180e3ea535b514d2424e171f2fcfed..da1ff950fb9a6ba23c00e14e3b0af4b52aef754a 100644 (file)
@@ -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