From 3117b17bc57c174ab44b42350eac2b2bc6f6dcd3 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 20 Oct 2018 17:53:42 +0000 Subject: Use llvm::{all,any,none}_of instead std::{all,any,none}_of. NFC llvm-svn: 344859 --- clang/lib/CodeGen/CodeGenFunction.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 77f978f..6249ae8 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -2284,14 +2284,13 @@ static bool hasRequiredFeatures(const SmallVectorImpl &ReqFeatures, ReqFeatures.begin(), ReqFeatures.end(), [&](StringRef Feature) { SmallVector 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; + }); }); } -- cgit v1.1