svn commit: r312206 - projects/clang400-import/contrib/llvm/tools/clang/lib/Frontend

Dimitry Andric dim at FreeBSD.org
Sun Jan 15 01:34:09 UTC 2017


Author: dim
Date: Sun Jan 15 01:34:07 2017
New Revision: 312206
URL: https://svnweb.freebsd.org/changeset/base/312206

Log:
  Pull in r292032 from upstream llvm trunk (by Yaron Keren):
  
    Fix PR31644 introduced by r287138 and add a regression test.
    Thanks Dimitry Andric for the report and fix!
  
  This should restore -MP output to what it was before.
  
  Reported by:	jbeich
  PR:		216043

Modified:
  projects/clang400-import/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp

Modified: projects/clang400-import/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp
==============================================================================
--- projects/clang400-import/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp	Sun Jan 15 00:50:10 2017	(r312205)
+++ projects/clang400-import/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp	Sun Jan 15 01:34:07 2017	(r312206)
@@ -447,9 +447,9 @@ void DFGImpl::OutputDependencyFile() {
   // Create phony targets if requested.
   if (PhonyTarget && !Files.empty()) {
     // Skip the first entry, this is always the input file itself.
-    for (StringRef File : Files) {
+    for (auto I = Files.begin() + 1, E = Files.end(); I != E; ++I) {
       OS << '\n';
-      PrintFilename(OS, File, OutputFormat);
+      PrintFilename(OS, *I, OutputFormat);
       OS << ":\n";
     }
   }


More information about the svn-src-projects mailing list