Skip to content

Commit c0bf51e

Browse files
[Vectorize] Fix a warning
This patch fixes: llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1865:17: error: unused variable 'Preds' [-Werror,-Wunused-variable]
1 parent 061ef3c commit c0bf51e

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)