forked from OSchip/llvm-project
Fix what appears to be a copy-paste error.
This looks like it was copied from SetUpBuildDumpLog, which dumps to the file `DiagOpts->DumpBuildInformation`. There is another member `DiagOpts->DiagnosticLogFile` which appears to be unused. The fact that this feature doesn't even print to the output file specified on the command line makes me think that it should be ripped out. llvm-svn: 172944
This commit is contained in:
parent
d42917f01c
commit
2118a5cd2b
|
@ -128,7 +128,7 @@ static void SetUpDiagnosticLog(DiagnosticOptions *DiagOpts,
|
|||
ErrorInfo, llvm::raw_fd_ostream::F_Append));
|
||||
if (!ErrorInfo.empty()) {
|
||||
Diags.Report(diag::warn_fe_cc_log_diagnostics_failure)
|
||||
<< DiagOpts->DumpBuildInformation << ErrorInfo;
|
||||
<< DiagOpts->DiagnosticLogFile << ErrorInfo;
|
||||
} else {
|
||||
FileOS->SetUnbuffered();
|
||||
FileOS->SetUseAtomicWrites(true);
|
||||
|
|
Loading…
Reference in New Issue