From: Sean Silva Date: Sun, 20 Jan 2013 01:58:26 +0000 (+0000) Subject: Fix what appears to be a copy-paste error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2ff76b84c2f018f438eac2c2dd8b82bde441468;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172944 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 057adbd10a..8ceb9f72fd 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -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);