Skip to content

Commit 3279186

Browse files
basioli-kNickGuy-Arm
authored andcommitted
Add [[maybe_unused]] to a variable used only in assert in VPlan.h (llvm#124173)
(cherry picked from commit c9b7303)
1 parent 7bd2019 commit 3279186

File tree

1 file changed

+2
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,8 @@ class VPPartialReductionRecipe : public VPSingleDefRecipe {
24562456
: VPSingleDefRecipe(VPDef::VPPartialReductionSC,
24572457
ArrayRef<VPValue *>({Op0, Op1}), ReductionInst),
24582458
Opcode(Opcode) {
2459-
auto *AccumulatorRecipe = getOperand(1)->getDefiningRecipe();
2459+
[[maybe_unused]] auto *AccumulatorRecipe =
2460+
getOperand(1)->getDefiningRecipe();
24602461
assert((isa<VPReductionPHIRecipe>(AccumulatorRecipe) ||
24612462
isa<VPPartialReductionRecipe>(AccumulatorRecipe)) &&
24622463
"Unexpected operand order for partial reduction recipe");

0 commit comments

Comments
 (0)