We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6edfc6c commit 3e1931dCopy full SHA for 3e1931d
llvm/lib/Transforms/Scalar/LICM.cpp
@@ -786,8 +786,8 @@ class ControlFlowHoister {
786
return InitialPreheader;
787
}
788
BranchInst *BI = It->first;
789
- assert(std::find_if(++It, HoistableBranches.end(), HasBBAsSuccessor) ==
790
- HoistableBranches.end() &&
+ assert(std::none_of(std::next(It), HoistableBranches.end(),
+ HasBBAsSuccessor) &&
791
"BB is expected to be the target of at most one branch");
792
793
LLVMContext &C = BB->getContext();
0 commit comments