From 5df539a1004bc4db5c38b33ba3e219595a10ae3c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 22 Jan 2017 16:52:41 +0000 Subject: Vendor import of clang release_40 branch r292732: https://llvm.org/svn/llvm-project/cfe/branches/release_40@292732 --- lib/Frontend/DependencyFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Frontend/DependencyFile.cpp') diff --git a/lib/Frontend/DependencyFile.cpp b/lib/Frontend/DependencyFile.cpp index 059f116a3c31..bd14c53e4d15 100644 --- a/lib/Frontend/DependencyFile.cpp +++ b/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"; } } -- cgit v1.2.3