diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-11-29 04:37:14 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-11-29 04:37:14 +0000 |
commit | b4b66d06dfae3d7cc6bc685ea5c261c81fa9b783 (patch) | |
tree | 7990e469ad5bc42633ab8916cc2bd10a7980ed79 /llvm/lib/Analysis | |
parent | d0573179dc790b0a866c7e6dc1854590709ce709 (diff) | |
download | bcm5719-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.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 3 |
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 |