Skip to content

Commit cb616f8

Browse files
committed
Add [[maybe_unused]] to a variable used only in assert in VPlan.h
1 parent 6d5697f commit cb616f8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,7 @@ 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 = getOperand(1)->getDefiningRecipe();
24652465
assert((isa<VPReductionPHIRecipe>(AccumulatorRecipe) ||
24662466
isa<VPPartialReductionRecipe>(AccumulatorRecipe)) &&
24672467
"Unexpected operand order for partial reduction recipe");

0 commit comments

Comments
 (0)