Skip to content

Commit 9042841

Browse files
[llvm] Use std::none_of (NFC) (#143320)
1 parent a14de0f commit 9042841

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/IndirectBrExpandPass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ bool runImpl(Function &F, const TargetLowering *TLI, DomTreeUpdater *DTU) {
144144
if (BlockAddressUseIt == BB.use_end())
145145
continue;
146146

147-
assert(std::find_if(std::next(BlockAddressUseIt), BB.use_end(),
148-
IsBlockAddressUse) == BB.use_end() &&
147+
assert(std::none_of(std::next(BlockAddressUseIt), BB.use_end(),
148+
IsBlockAddressUse) &&
149149
"There should only ever be a single blockaddress use because it is "
150150
"a constant and should be uniqued.");
151151

0 commit comments

Comments
 (0)