Driver: Fix a misleading comment and test for what it actually did

llvm-svn: 211806
This commit is contained in:
Justin Bogner 2014-06-26 20:59:39 +00:00
parent 5aaf2e729b
commit f05a499339
2 changed files with 2 additions and 1 deletions

View 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");

View 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