summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2013-01-20 01:58:26 +0000
committerSean Silva <silvas@purdue.edu>2013-01-20 01:58:26 +0000
commit2118a5cd2bf1ed98823e7ee9b52bb51bb7a3b33b (patch)
tree6c33d1b21fba382bee9b1f3b21e60132263b7994
parentd42917f01c39b5300e844c3ab038547498385279 (diff)
downloadbcm5719-llvm-2118a5cd2bf1ed98823e7ee9b52bb51bb7a3b33b.tar.gz
bcm5719-llvm-2118a5cd2bf1ed98823e7ee9b52bb51bb7a3b33b.zip
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
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 057adbd10a8..8ceb9f72fdd 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud