diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-15 01:34:07 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-15 01:34:07 +0000 |
commit | fb20e17e5ae1030d5b761376e465b7f4082319d0 (patch) | |
tree | 3964906a7a092f7d57cabb33db6774203437a6f8 /contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp | |
parent | d370fd1cd8fc69e87dc63f4f4a82e5a8b4956c93 (diff) |
Notes
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp b/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp index 059f116a3c31..bd14c53e4d15 100644 --- a/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp +++ b/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp @@ -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"; } } |