Remove an intermediate lambda. NFC

llvm-svn: 254246
This commit is contained in:
Craig Topper 2015-11-29 05:38:08 +00:00
parent abf49140d4
commit d896b03e4c
1 changed files with 2 additions and 3 deletions

View File

@ -253,9 +253,8 @@ 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(),
[](Type *SubType) { return containsGCPtrType(SubType); });
return std::any_of(ST->subtypes().begin(), ST->subtypes().end(),
containsGCPtrType);
return false;
}