summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-11-29 04:37:14 +0000
committerCraig Topper <craig.topper@gmail.com>2015-11-29 04:37:14 +0000
commitb4b66d06dfae3d7cc6bc685ea5c261c81fa9b783 (patch)
tree7990e469ad5bc42633ab8916cc2bd10a7980ed79 /llvm/lib/Analysis
parentd0573179dc790b0a866c7e6dc1854590709ce709 (diff)
downloadbcm5719-llvm-b4b66d06dfae3d7cc6bc685ea5c261c81fa9b783.tar.gz
bcm5719-llvm-b4b66d06dfae3d7cc6bc685ea5c261c81fa9b783.zip
Remove unnecessary intermediate lambda. NFC
llvm-svn: 254243
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/GlobalsModRef.cpp4
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp3
2 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/GlobalsModRef.cpp b/llvm/lib/Analysis/GlobalsModRef.cpp
index c809ff83457..86c2e501465 100644
--- a/llvm/lib/Analysis/GlobalsModRef.cpp
+++ b/llvm/lib/Analysis/GlobalsModRef.cpp
@@ -878,9 +878,7 @@ ModRefInfo GlobalsAAResult::getModRefInfoForArgument(ImmutableCallSite CS,
GetUnderlyingObjects(A, Objects, DL);
// All objects must be identified.
- if (!std::all_of(Objects.begin(), Objects.end(), [&GV](const Value *V) {
- return isIdentifiedObject(V);
- }))
+ if (!std::all_of(Objects.begin(), Objects.end(), isIdentifiedObject))
return ConservativeResult;
if (std::find(Objects.begin(), Objects.end(), GV) != Objects.end())
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 5ed7f8748c9..0bd18c1a35c 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -2090,8 +2090,7 @@ static Constant *computePointerICmp(const DataLayout &DL,
// Is the set of underlying objects all noalias calls?
auto IsNAC = [](SmallVectorImpl<Value *> &Objects) {
- return std::all_of(Objects.begin(), Objects.end(),
- [](Value *V){ return isNoAliasCall(V); });
+ return std::all_of(Objects.begin(), Objects.end(), isNoAliasCall);
};
// Is the set of underlying objects all things which must be disjoint from
OpenPOWER on IntegriCloud