aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Frontend
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-22 16:52:41 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-22 16:52:41 +0000
commit5df539a1004bc4db5c38b33ba3e219595a10ae3c (patch)
tree8f7162c2eeb96f9bef560b568c3a039187a31953 /lib/Frontend
parentd2e0a8dd949ab874c6d66f97106bd5c270e2fa7d (diff)
downloadsrc-5df539a1004bc4db5c38b33ba3e219595a10ae3c.tar.gz
src-5df539a1004bc4db5c38b33ba3e219595a10ae3c.zip
Vendor import of clang release_40 branch r292732:vendor/clang/clang-release_40-r292732
Notes
Notes: svn path=/vendor/clang/dist/; revision=312627 svn path=/vendor/clang/clang-release_40-r292732/; revision=312628; tag=vendor/clang/clang-release_40-r292732
Diffstat (limited to 'lib/Frontend')
-rw-r--r--lib/Frontend/DependencyFile.cpp4
1 files changed, 2 insertions, 2 deletions
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";
}
}