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())
// 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