[llvm] r254246 - Remove an intermediate lambda. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 28 21:38:08 PST 2015
Author: ctopper
Date: Sat Nov 28 23:38:08 2015
New Revision: 254246
URL: http://llvm.org/viewvc/llvm-project?rev=254246&view=rev
Log:
Remove an intermediate lambda. NFC
Modified:
llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=254246&r1=254245&r2=254246&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Sat Nov 28 23:38:08 2015
@@ -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;
}
More information about the llvm-commits
mailing list