Skip to content

Commit 1796c6a

Browse files
Address a comment.
1 parent a062903 commit 1796c6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Scalar/LICM.cpp

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

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

0 commit comments

Comments
 (0)