projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0031fa
)
Use llvm::any_of instead std::any_of. NFC
author
Fangrui Song
<maskray@google.com>
Wed, 31 Oct 2018 00:31:06 +0000
(
00:31
+0000)
committer
Fangrui Song
<maskray@google.com>
Wed, 31 Oct 2018 00:31:06 +0000
(
00:31
+0000)
llvm-svn: 345683
llvm/lib/IR/SafepointIRVerifier.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/SafepointIRVerifier.cpp
b/llvm/lib/IR/SafepointIRVerifier.cpp
index
d210213
..
3596b31
100644
(file)
--- 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;
}