Skip to content

Commit a062903

Browse files
[Scalar] Use std::none_of (NFC)
1 parent fe3760e commit a062903

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/LICM.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,7 @@ class ControlFlowHoister {
786786
return InitialPreheader;
787787
}
788788
BranchInst *BI = It->first;
789-
assert(std::find_if(++It, HoistableBranches.end(), HasBBAsSuccessor) ==
790-
HoistableBranches.end() &&
789+
assert(std::none_of(++It, HoistableBranches.end(), HasBBAsSuccessor) &&
791790
"BB is expected to be the target of at most one branch");
792791

793792
LLVMContext &C = BB->getContext();

0 commit comments

Comments
 (0)