Skip to content

Commit c9b7303

Browse files
authored
Add [[maybe_unused]] to a variable used only in assert in VPlan.h (#124173)
1 parent 775d0f3 commit c9b7303

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,8 @@ class VPPartialReductionRecipe : public VPSingleDefRecipe {
24612461
: VPSingleDefRecipe(VPDef::VPPartialReductionSC,
24622462
ArrayRef<VPValue *>({Op0, Op1}), ReductionInst),
24632463
Opcode(Opcode) {
2464-
auto *AccumulatorRecipe = getOperand(1)->getDefiningRecipe();
2464+
[[maybe_unused]] auto *AccumulatorRecipe =
2465+
getOperand(1)->getDefiningRecipe();
24652466
assert((isa<VPReductionPHIRecipe>(AccumulatorRecipe) ||
24662467
isa<VPPartialReductionRecipe>(AccumulatorRecipe)) &&
24672468
"Unexpected operand order for partial reduction recipe");

0 commit comments

Comments
 (0)