aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-19 20:19:15 -0800
committerKazu Hirata <kazu@google.com>2021-01-19 20:19:16 -0800
commit978c754076e37c7b392240dd121b5b6cb8d1bde2 (patch)
tree25a118648cd310aab0bcaa8756a58530e817b703 /llvm/lib/Support/CommandLine.cpp
parent885720248921324d28b983248dcc4056fd994a0f (diff)
downloadllvm-978c754076e37c7b392240dd121b5b6cb8d1bde2.zip
llvm-978c754076e37c7b392240dd121b5b6cb8d1bde2.tar.gz
llvm-978c754076e37c7b392240dd121b5b6cb8d1bde2.tar.bz2
[llvm] Use llvm::any_of (NFC)
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index c8578f9..6d89481 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -1204,7 +1204,7 @@ bool cl::ExpandResponseFiles(StringSaver &Saver, TokenizerCallback Tokenizer,
};
// Check for recursive response files.
- if (std::any_of(FileStack.begin() + 1, FileStack.end(), IsEquivalent)) {
+ if (any_of(drop_begin(FileStack), IsEquivalent)) {
// This file is recursive, so we leave it in the argument stream and
// move on.
AllExpanded = false;