]> granicus.if.org Git - clang/commitdiff
Fix what appears to be a copy-paste error.
authorSean Silva <silvas@purdue.edu>
Sun, 20 Jan 2013 01:58:26 +0000 (01:58 +0000)
committerSean Silva <silvas@purdue.edu>
Sun, 20 Jan 2013 01:58:26 +0000 (01:58 +0000)
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

lib/Frontend/CompilerInstance.cpp

index 057adbd10a8986075472eaee6592806147bace91..8ceb9f72fdd4864bbb26f4e78cd6c6b014d6eb92 100644 (file)
@@ -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);