Skip to content

Commit 559837e

Browse files
author
git apple-llvm automerger
committed
Merge commit 'c0bf51e3ad8e' from llvm.org/main into next
2 parents b24f0a1 + c0bf51e commit 559837e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,8 +1862,7 @@ static void removeBranchOnConst(VPlan &Plan) {
18621862

18631863
VPBasicBlock *RemovedSucc =
18641864
cast<VPBasicBlock>(VPBB->getSuccessors()[RemovedIdx]);
1865-
const auto &Preds = RemovedSucc->getPredecessors();
1866-
assert(count(Preds, VPBB) == 1 &&
1865+
assert(count(RemovedSucc->getPredecessors(), VPBB) == 1 &&
18671866
"There must be a single edge between VPBB and its successor");
18681867
// Values coming from VPBB into phi recipes of RemoveSucc are removed from
18691868
// these recipes.

0 commit comments

Comments
 (0)