Use llvm::any_of instead std::any_of. NFC
authorFangrui Song <maskray@google.com>
Wed, 31 Oct 2018 00:31:06 +0000 (00:31 +0000)
committerFangrui Song <maskray@google.com>
Wed, 31 Oct 2018 00:31:06 +0000 (00:31 +0000)
llvm-svn: 345683

llvm/lib/IR/SafepointIRVerifier.cpp

index d210213..3596b31 100644 (file)
@@ -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;
 }