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 a062903 commit 1796c6aCopy full SHA for 1796c6a
llvm/lib/Transforms/Scalar/LICM.cpp
@@ -786,7 +786,8 @@ class ControlFlowHoister {
786
return InitialPreheader;
787
}
788
BranchInst *BI = It->first;
789
- assert(std::none_of(++It, HoistableBranches.end(), HasBBAsSuccessor) &&
+ assert(std::none_of(std::next(It), HoistableBranches.end(),
790
+ HasBBAsSuccessor) &&
791
"BB is expected to be the target of at most one branch");
792
793
LLVMContext &C = BB->getContext();
0 commit comments