Use range algorithms instead of unpacking begin/end
No functionality change is intended. llvm-svn: 278417
This commit is contained in:
@@ -45,8 +45,7 @@ static void completeEphemeralValues(SmallVector<const Value *, 16> &WorkSet,
|
||||
continue;
|
||||
|
||||
// If all uses of this value are ephemeral, then so is this value.
|
||||
if (!std::all_of(V->user_begin(), V->user_end(),
|
||||
[&](const User *U) { return EphValues.count(U); }))
|
||||
if (!all_of(V->users(), [&](const User *U) { return EphValues.count(U); }))
|
||||
continue;
|
||||
|
||||
EphValues.insert(V);
|
||||
|
||||
Reference in New Issue
Block a user