Remove an intermediate lambda. NFC
authorCraig Topper <craig.topper@gmail.com>
Sun, 29 Nov 2015 05:38:08 +0000 (05:38 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 29 Nov 2015 05:38:08 +0000 (05:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254246 91177308-0d34-0410-b5e6-96231b3b80d8

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;
 }