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 | 3117b17bc57c174ab44b42350eac2b2bc6f6dcd3 (patch) | |
tree | 521ba6cecfe4a31f613e29eb6eff7c63291e682e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 45b275409729919a0cc844aa2b34daf5534a107f (diff) | |
download | bcm5719-llvm-3117b17bc57c174ab44b42350eac2b2bc6f6dcd3.tar.gz bcm5719-llvm-3117b17bc57c174ab44b42350eac2b2bc6f6dcd3.zip |
Use llvm::{all,any,none}_of instead std::{all,any,none}_of. NFC
llvm-svn: 344859
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 77f978f687e..6249ae846dd 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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; + }); }); } |