diff options
| author | Fangrui Song <maskray@google.com> | 2018-10-20 17:53:42 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2018-10-20 17:53:42 +0000 |
| commit | 117cd8c7825bb58b8ce0cdebfe15b5f54884422d (patch) | |
| tree | 663bc549a4b7afea24b0619f9945bd30c2d4aa7b /lib/CodeGen/CodeGenFunction.cpp | |
| parent | c6c6ebef73405d5a9b3dc212ea78a7b7ce2ca133 (diff) | |
| download | clang-117cd8c7825bb58b8ce0cdebfe15b5f54884422d.tar.gz | |
Use llvm::{all,any,none}_of instead std::{all,any,none}_of. NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 77f978f687..6249ae846d 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -2284,14 +2284,13 @@ static bool hasRequiredFeatures(const SmallVectorImpl<StringRef> &ReqFeatures, ReqFeatures.begin(), ReqFeatures.end(), [&](StringRef Feature) { SmallVector<StringRef, 1> OrFeatures; Feature.split(OrFeatures, '|'); - return std::any_of(OrFeatures.begin(), OrFeatures.end(), - [&](StringRef Feature) { - if (!CallerFeatureMap.lookup(Feature)) { - FirstMissing = Feature.str(); - return false; - } - return true; - }); + return llvm::any_of(OrFeatures, [&](StringRef Feature) { + if (!CallerFeatureMap.lookup(Feature)) { + FirstMissing = Feature.str(); + return false; + } + return true; + }); }); } |
