summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/SafepointIRVerifier.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-10-31 00:31:06 +0000
committerFangrui Song <maskray@google.com>2018-10-31 00:31:06 +0000
commita23f091ba387b3b9371ab75d1fb19955c030d9b2 (patch)
tree02a8a1bc2d3a4feca47672691daf25e10ee4a24f /llvm/lib/IR/SafepointIRVerifier.cpp
parentf0031fa2689bf68a40b067da916509b923f5664d (diff)
downloadbcm5719-llvm-a23f091ba387b3b9371ab75d1fb19955c030d9b2.tar.gz
bcm5719-llvm-a23f091ba387b3b9371ab75d1fb19955c030d9b2.zip
Use llvm::any_of instead std::any_of. NFC
llvm-svn: 345683
Diffstat (limited to 'llvm/lib/IR/SafepointIRVerifier.cpp')
-rw-r--r--llvm/lib/IR/SafepointIRVerifier.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/SafepointIRVerifier.cpp b/llvm/lib/IR/SafepointIRVerifier.cpp
index d2102138d79..3596b31dd25 100644
--- a/llvm/lib/IR/SafepointIRVerifier.cpp
+++ b/llvm/lib/IR/SafepointIRVerifier.cpp
@@ -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;
}
OpenPOWER on IntegriCloud