Remove an intermediate lambda. NFC
[oota-llvm.git] / lib / Transforms / Scalar / RewriteStatepointsForGC.cpp
index a5eb0f9d5dc3c4d4e228409a310b6af45ed1ca55..79f724884fa2f9e42575e80e7404322230739fd4 100644 (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;
 }