[llvm] r345683 - Use llvm::any_of instead std::any_of. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 17:31:06 PDT 2018


Author: maskray
Date: Tue Oct 30 17:31:06 2018
New Revision: 345683

URL: http://llvm.org/viewvc/llvm-project?rev=345683&view=rev
Log:
Use llvm::any_of instead std::any_of. NFC

Modified:
    llvm/trunk/lib/IR/SafepointIRVerifier.cpp

Modified: llvm/trunk/lib/IR/SafepointIRVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/SafepointIRVerifier.cpp?rev=345683&r1=345682&r2=345683&view=diff
==============================================================================
--- llvm/trunk/lib/IR/SafepointIRVerifier.cpp (original)
+++ llvm/trunk/lib/IR/SafepointIRVerifier.cpp Tue Oct 30 17:31:06 2018
@@ -257,8 +257,7 @@ static bool containsGCPtrType(Type *Ty)
   if (ArrayType *AT = dyn_cast<ArrayType>(Ty))
     return containsGCPtrType(AT->getElementType());
   if (StructType *ST = dyn_cast<StructType>(Ty))
-    return std::any_of(ST->subtypes().begin(), ST->subtypes().end(),
-                       containsGCPtrType);
+    return llvm::any_of(ST->subtypes(), containsGCPtrType);
   return false;
 }
 




More information about the llvm-commits mailing list