Use range algorithms instead of unpacking begin/end
No functionality change is intended. llvm-svn: 278417
This commit is contained in:
@@ -920,7 +920,7 @@ SmallVector<Instruction *, 8> llvm::findDefsUsedOutsideOfLoop(Loop *L) {
|
||||
// be adapted into a pointer.
|
||||
for (auto &Inst : *Block) {
|
||||
auto Users = Inst.users();
|
||||
if (std::any_of(Users.begin(), Users.end(), [&](User *U) {
|
||||
if (any_of(Users, [&](User *U) {
|
||||
auto *Use = cast<Instruction>(U);
|
||||
return !L->contains(Use->getParent());
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user